0&&b()}),g.find(".ult_tabcontent").find("div.ult_tabitemname:eq("+h+")").fadeIn(1500,function(){g.find(".ult_tabcontent").find("div.ult_tab_min_contain").removeClass("ult_owl-origin"),hq?jQuery(this).animate({left:"-"+n+"px"},10):jQuery(this).animate({left:""+n+"px"},10),i>0&&b()}),g.find(".ult_tabcontent").find("div.ult_tabitemname:eq("+h+")").show(100,function(){jQuery(this).animate({left:"0px"},800)}),o=h,c.preventDefault()):(g.find(".ult_tabcontent").find("div.ult_tabitemname:eq("+h+")").animate({opacity:1},1,function(){i>0&&b()}),g.find(".ult_tabcontent").find("div.ult_tabitemname:eq("+h+")").animate({opacity:1},1,function(){}),o=h,c.preventDefault())):("style2"==d||"style1"==d?(s.find("a.ult_a").css({background:m,color:k}),s.find(".ult_tab_icon").css({color:l})):(s.find("a.ult_a").css({color:k}),s.css({background:m,color:k})),g.find(".ult_tabcontent").find("div.ult_tabitemname").not("div.ult_tabitemname:eq("+h+")").hide(1,function(){i>0&&b()}),g.find(".ult_tabcontent").find("div.ult_tabitemname:eq("+h+")").show(10),o=h,c.preventDefault())});var q=0;i>0&&b()})}),jQuery(document).ready(function(a){a(this).find("ul.ult_tabmenu li a.ult_a").click(function(b){a(document).trigger("ultAdvancedTabClicked",a(this)),jQuery("html,body").stop(),a(this).closest("li.ult_tab_li").siblings().each(function(b,c){var d=a(this).data("iconcolor");a(this).find(".ult_tab_icon").css({color:d})})}),a(document).on("ultAdvancedTabClicked",function(a,b){"function"==typeof wpb_prepare_tab_content&&wpb_prepare_tab_content(a,{newPanel:jQuery(".ult_tabcontent")})})}),jQuery(document).ready(function(){setmytime(),jQuery(this).find("ul.ult_tabmenu li a.ult_a").click(function(a){var b=jQuery(this).closest(".ult_tabs").data("animation");if(j=jQuery(this).closest("li.ult_tab_li").index(),"Fade"==b){var c=jQuery(this).closest(".ult_tabs").find("div.ult_tabitemname:eq("+j+")").outerHeight();jQuery(this).closest(".ult_tabs").find(".ult_tabitemname").css({position:"absolute",left:"0",right:"0"}),jQuery(this).closest(".ult_tabs").find(".ult_tabcontent").animate({height:c},"slow")}if("Slide-Horizontal"==b){var c=jQuery(this).closest(".ult_tabs").find("div.ult_tabitemname:eq("+j+")").outerHeight();jQuery(this).closest(".ult_tabs").find(".ult_tabcontent").css({overflow:"hidden"}),jQuery(this).closest(".ult_tabs").find(".ult_tabcontent").animate({height:c},"slow")}})}),jQuery(document).ready(function(){jQuery(this).find("ul.ult_tabmenu li a.ult_a").click(function(a){jQuery(".slick-slider").parents(".ult_tabitemname").length&&setTimeout(function(){jQuery(".slick-slider").slick("setPosition"),jQuery(window).trigger("resize")},200)}),jQuery(".vc_toggle").parents(".ult_tabs")&&jQuery(".vc_toggle").click(function(){jQuery(this).parents(".ult_tabitemname").height();jQuery(this).find(".vc_toggle_content").toggleClass("vc_toggle_for_tab"),jQuery(this).find(".vc_toggle_content").hasClass("vc_toggle_for_tab")?setTimeout(function(){var a=jQuery(".ult_tabitemname").height();jQuery(".ult_tabcontent").animate({height:a},100)},100):setTimeout(function(){var a=jQuery(".vc_toggle").parents(".ult_tabitemname").height();jQuery(".ult_tabcontent").animate({height:a},100)},200)})}),jQuery(document).ready(function(){function a(){jQuery(".ult-team-member-wrap").each(function(a){var b=jQuery(this).data("responsive_width");""!=b&&(jQuery(window).width()<=b?(jQuery(this).removeClass("ult-style-2"),jQuery(this).addClass("ult-style-1 ult-responsive")):jQuery(this).hasClass("ult-responsive")&&(jQuery(this).removeClass("ult-style-1 ult-responsive"),jQuery(this).addClass("ult-style-2")))})}function b(){jQuery(".ult-team-member-wrap").each(function(a){var b=jQuery(this).height(),c=jQuery(this).find(".ult-team_description_slide"),d=c;parseFloat(b)',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},b.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d);for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},b.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},b.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show()},b.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},b.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(b),b.isDefaultPrevented())return;var c=this,d=this.tip();this.setContent(),this.options.animation&&d.addClass("fade");var e="function"==typeof this.options.placement?this.options.placement.call(this,d[0],this.$element[0]):this.options.placement,f=/\s?auto?\s?/i,g=f.test(e);g&&(e=e.replace(f,"")||"top"),d.detach().css({top:0,left:0,display:"block"}).addClass(e),this.options.container?d.appendTo(this.options.container):d.insertAfter(this.$element);var h=this.getPosition(),i=d[0].offsetWidth,j=d[0].offsetHeight;if(g){var k=this.$element.parent(),l=e,m=document.documentElement.scrollTop||document.body.scrollTop,n="body"==this.options.container?window.innerWidth:k.outerWidth(),o="body"==this.options.container?window.innerHeight:k.outerHeight(),p="body"==this.options.container?0:k.offset().left;e="bottom"==e&&h.top+h.height+j-m>o?"top":"top"==e&&h.top-m-j<0?"bottom":"right"==e&&h.right+i>n?"left":"left"==e&&h.left-i '+this.cursorChar+""),0==this.el.parent().find(".typed-cursor").length&&this.el.after(this.cursor)),this.init()},typewrite:function(a,b){if(this.stop!==!0){var c=Math.round(70*Math.random())+this.typeSpeed,d=this;d.timeout=setTimeout(function(){var c=0,e=a.substr(b);if("^"===e.charAt(0)){var f=1;/^\^\d+/.test(e)&&(e=/\d+/.exec(e)[0],f+=e.length,c=parseInt(e)),a=a.substring(0,b)+a.substring(b+f)}d.timeout=setTimeout(function(){if(b===a.length){if(d.options.onStringTyped(d.arrayPos),d.arrayPos===d.strings.length-1&&(d.options.callback(),d.curLoop++,d.loop===!1||d.curLoop===d.loopCount))return;d.timeout=setTimeout(function(){d.backspace(a,b)},d.backDelay)}else{0===b&&d.options.preStringTyped(d.arrayPos);var c=d.baseText+a.substr(0,b+1);d.attr?d.el.attr(d.attr,c):d.el.text(c),b++,d.typewrite(a,b)}},c)},c)}},backspace:function(a,b){if(this.stop!==!0){var c=Math.round(70*Math.random())+this.backSpeed,d=this;d.timeout=setTimeout(function(){var c=d.baseText+a.substr(0,b);d.attr?d.el.attr(d.attr,c):d.el.text(c),b>d.stopNum?(b--,d.backspace(a,b)):b<=d.stopNum&&(d.arrayPos++,d.arrayPos===d.strings.length?(d.arrayPos=0,d.init()):d.typewrite(d.strings[d.arrayPos],b))},c)}},reset:function(){var a=this;clearInterval(a.timeout);var b=this.el.attr("id");this.el.after(''),this.el.remove(),this.cursor.remove(),a.options.resetCallback()}},a.fn.typed=function(c){return this.each(function(){var d=a(this),e=d.data("typed"),f="object"==typeof c&&c;e||d.data("typed",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],typeSpeed:0,startDelay:0,backSpeed:0,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery),jQuery(document).ready(function(a){var b="",c="",d="",e="",f="",g="";jQuery(".ult-responsive").each(function(h,i){var j=jQuery(this),k=j.attr("data-responsive-json-new"),l=j.data("ultimate-target"),m="",n="",o="",p="",q="",r="";"undefined"==typeof k&&null==k||a.each(a.parseJSON(k),function(a,b){var c=a;if("undefined"!=typeof b&&null!=b){var d=b.split(";");jQuery.each(d,function(a,b){if("undefined"!=typeof b||null!=b){var d=b.split(":");switch(d[0]){case"large_screen":m+=c+":"+d[1]+";";break;case"desktop":n+=c+":"+d[1]+";";break;case"tablet":o+=c+":"+d[1]+";";break;case"tablet_portrait":p+=c+":"+d[1]+";";break;case"mobile_landscape":q+=c+":"+d[1]+";";break;case"mobile":r+=c+":"+d[1]+";"}}})}}),""!=r&&(g+=l+"{"+r+"}"),""!=q&&(f+=l+"{"+q+"}"),""!=p&&(e+=l+"{"+p+"}"),""!=o&&(d+=l+"{"+o+"}"),""!=n&&(c+=l+"{"+n+"}"),""!=m&&(b+=l+"{"+m+"}")});var h="",jQuery("head").append(h)}),function(a){a(document).ready(function(){var b="";a(".ult-video-banner").each(function(c,d){var e=a(d).attr("id"),f=a(d).data("current-time"),g=(a(d).data("placeholder"),0);a(d).find("video").get(0).addEventListener("canplay",function(){return!(g>=1)&&(a(d).find("video").get(0).currentTime=f,a(d).find("video").get(0).pause(),void g++)});var h=a(d).find(".ult-video-banner-overlay").data("overlay"),i=a(d).find(".ult-video-banner-overlay").data("overlay-hover");""!=h&&(b+="#"+e+" .ult-video-banner-overlay { background:"+h+" }"),""!=i&&(b+="#"+e+".ult-vb-touch-start .ult-video-banner-overlay { background:"+i+" }")}),""!=b&&a("head").append(""),a(document).on("mouseover",".ult-video-banner",function(){a(this).addClass("ult-vb-touch-start"),a(this).find("video").get(0).play()}),a(document).on("mouseout",".ult-video-banner",function(){a(this).removeClass("ult-vb-touch-start"),a(this).find("video").get(0).pause()}),a(document).on("touchstart",".ult-video-banner",function(){return a(this).hasClass("ult-vb-touch-start")?(a(this).removeClass("ult-vb-touch-start"),a(this).find("video").get(0).pause(),!1):(a(this).addClass("ult-vb-touch-start"),void a(this).find("video").get(0).play())})})}(jQuery),function(a){var b={speed:700,pause:4e3,showItems:1,mousePause:!0,height:0,animate:!0,margin:0,padding:0,startPaused:!1},c={moveUp:function(a,b){c.animate(a,b,"up")},moveDown:function(a,b){c.animate(a,b,"down")},animate:function(b,c,d){var e=b.itemHeight,f=b.options,g=b.element,h=g.children("ul"),i="up"===d?"li:first":"li:last";g.trigger("vticker.beforeTick");var j=h.children(i).clone(!0);if(f.height>0&&(e=h.children("li:first").height()),e+=f.margin+2*f.padding,"down"===d&&h.css("top","-"+e+"px").prepend(j),c&&c.animate){if(b.animating)return;b.animating=!0;var k="up"===d?{top:"-="+e+"px"}:{top:0};h.animate(k,f.speed,function(){a(h).children(i).remove(),a(h).css("top","0px"),b.animating=!1,g.trigger("vticker.afterTick")})}else h.children(i).remove(),h.css("top","0px"),g.trigger("vticker.afterTick");"up"===d&&j.appendTo(h)},nextUsePause:function(){var b=a(this).data("state"),c=b.options;b.isPaused||b.itemCount<2||d.next.call(this,{animate:c.animate})},startInterval:function(){var b=a(this).data("state"),d=b.options,e=this;b.intervalId=setInterval(function(){c.nextUsePause.call(e)},d.pause)},stopInterval:function(){var b=a(this).data("state");b&&(b.intervalId&&clearInterval(b.intervalId),b.intervalId=void 0)},restartInterval:function(){c.stopInterval.call(this),c.startInterval.call(this)}},d={init:function(e){d.stop.call(this);var f=jQuery.extend({},b),e=a.extend(f,e),g=a(this),h={itemCount:g.children("ul").children("li").length,itemHeight:0,itemMargin:0,element:g,animating:!1,options:e,isPaused:!!e.startPaused,pausedByCode:!1};if(a(this).data("state",h),g.css({overflow:"hidden",position:"relative"}).children("ul").css({position:"absolute",margin:0,padding:0}).children("li").css({margin:e.margin,padding:e.padding}),isNaN(e.height)||0===e.height){g.children("ul").children("li").each(function(){var b=a(this);b.height()>h.itemHeight&&(h.itemHeight=b.height())}),g.children("ul").children("li").each(function(){var b=a(this);b.height(h.itemHeight)});var i=e.margin+2*e.padding;g.height((h.itemHeight+i)*e.showItems+e.margin)}else g.height(e.height);var j=this;e.startPaused||c.startInterval.call(j),e.mousePause&&g.bind("mouseenter",function(){h.isPaused!==!0&&(h.pausedByCode=!0,c.stopInterval.call(j),d.pause.call(j,!0))}).bind("mouseleave",function(){(h.isPaused!==!0||h.pausedByCode)&&(h.pausedByCode=!1,d.pause.call(j,!1),c.startInterval.call(j))})},pause:function(b){var c=a(this).data("state");if(c){if(c.itemCount<2)return!1;c.isPaused=b;var d=c.element;b?(a(this).addClass("paused"),d.trigger("vticker.pause")):(a(this).removeClass("paused"),d.trigger("vticker.resume"))}},next:function(b){var d=a(this).data("state");if(d){if(d.animating||d.itemCount<2)return!1;c.restartInterval.call(this),c.moveUp(d,b)}},prev:function(b){var d=a(this).data("state");if(d){if(d.animating||d.itemCount<2)return!1;c.restartInterval.call(this),c.moveDown(d,b)}},stop:function(){var b=a(this).data("state");b&&c.stopInterval.call(this)},remove:function(){var b=a(this).data("state");if(b){c.stopInterval.call(this);var d=b.element;d.unbind(),d.remove()}}};a.fn.vTicker=function(b){return d[b]?d[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?void a.error("Method "+b+" does not exist on jQuery.vTicker"):d.init.apply(this,arguments)}}(jQuery);}catch(e){} try{if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,o=this;t(this).one("bsTransitionEnd",function(){i=!0});var n=function(){i||t(o).trigger(t.support.transition.end)};return setTimeout(n,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),n=i.data("bs.alert");n||i.data("bs.alert",n=new o(this)),"string"==typeof e&&n[e].call(i)})}var i='[data-dismiss="alert"]',o=function(e){t(e).on("click",i,this.close)};o.VERSION="3.3.5",o.TRANSITION_DURATION=150,o.prototype.close=function(e){function i(){r.detach().trigger("closed.bs.alert").remove()}var n=t(this),s=n.attr("data-target");s||(s=n.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,""));var r=t(s);e&&e.preventDefault(),r.length||(r=n.closest(".alert")),r.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(o.TRANSITION_DURATION):i())};var n=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=o,t.fn.alert.noConflict=function(){return t.fn.alert=n,this},t(document).on("click.bs.alert.data-api",i,o.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),n=o.data("bs.button"),s="object"==typeof e&&e;n||o.data("bs.button",n=new i(this,s)),"toggle"==e?n.toggle():e&&n.setState(e)})}var i=function(e,o){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,o),this.isLoading=!1};i.VERSION="3.3.5",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",o=this.$element,n=o.is("input")?"val":"html",s=o.data();e+="Text",null==s.resetText&&o.data("resetText",o[n]()),setTimeout(t.proxy(function(){o[n](null==s[e]?this.options[e]:s[e]),"loadingText"==e?(this.isLoading=!0,o.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,o.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var o=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=o,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var o=t(i.target);o.hasClass("btn")||(o=o.closest(".btn")),e.call(o,"toggle"),t(i.target).is('input[type="radio"]')||t(i.target).is('input[type="checkbox"]')||i.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),n=o.data("bs.carousel"),s=t.extend({},i.DEFAULTS,o.data(),"object"==typeof e&&e),r="string"==typeof e?e:s.slide;n||o.data("bs.carousel",n=new i(this,s)),"number"==typeof e?n.to(e):r?n[r]():s.interval&&n.pause().cycle()})}var i=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.3.5",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e),o="prev"==t&&0===i||"next"==t&&i==this.$items.length-1;if(o&&!this.options.wrap)return e;var n="prev"==t?-1:1,s=(i+n)%this.$items.length;return this.$items.eq(s)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,o){var n=this.$element.find(".item.active"),s=o||this.getItemForDirection(e,n),r=this.interval,a="next"==e?"left":"right",l=this;if(s.hasClass("active"))return this.sliding=!1;var h=s[0],c=t.Event("slide.bs.carousel",{relatedTarget:h,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(s)]);d&&d.addClass("active")}var p=t.Event("slid.bs.carousel",{relatedTarget:h,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(s.addClass(e),s[0].offsetWidth,n.addClass(a),s.addClass(a),n.one("bsTransitionEnd",function(){s.removeClass([e,a].join(" ")).addClass("active"),n.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(p)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(n.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(p)),r&&this.cycle(),this}};var o=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=o,this};var n=function(i){var o,n=t(this),s=t(n.attr("data-target")||(o=n.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""));if(s.hasClass("carousel")){var r=t.extend({},s.data(),n.data()),a=n.attr("data-slide-to");a&&(r.interval=!1),e.call(s,r),a&&s.data("bs.carousel").to(a),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",n).on("click.bs.carousel.data-api","[data-slide-to]",n),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){"use strict";function e(e){var i,o=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(o)}function i(e){return this.each(function(){var i=t(this),n=i.data("bs.collapse"),s=t.extend({},o.DEFAULTS,i.data(),"object"==typeof e&&e);!n&&s.toggle&&/show|hide/.test(e)&&(s.toggle=!1),n||i.data("bs.collapse",n=new o(this,s)),"string"==typeof e&&n[e]()})}var o=function(e,i){this.$element=t(e),this.options=t.extend({},o.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};o.VERSION="3.3.5",o.TRANSITION_DURATION=350,o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,n=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(n&&n.length&&(e=n.data("bs.collapse"),e&&e.transitioning))){var s=t.Event("show.bs.collapse");if(this.$element.trigger(s),!s.isDefaultPrevented()){n&&n.length&&(i.call(n,"hide"),e||n.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[r](this.$element[0][l])}}}},o.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(n,this)).emulateTransitionEnd(o.TRANSITION_DURATION):n.call(this)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},o.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,o){var n=t(o);this.addAriaAndCollapsedClass(e(n),n)},this)).end()},o.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var n=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=o,t.fn.collapse.noConflict=function(){return t.fn.collapse=n,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(o){var n=t(this);n.attr("data-target")||o.preventDefault();var s=e(n),r=s.data("bs.collapse"),a=r?"toggle":n.data();i.call(s,a)})}(jQuery),+function(t){"use strict";function e(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var o=i&&t(i);return o&&o.length?o:e.parent()}function i(i){i&&3===i.which||(t(n).remove(),t(s).each(function(){var o=t(this),n=e(o),s={relatedTarget:this};n.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(n[0],i.target)||(n.trigger(i=t.Event("hide.bs.dropdown",s)),i.isDefaultPrevented()||(o.attr("aria-expanded","false"),n.removeClass("open").trigger("hidden.bs.dropdown",s))))}))}function o(e){return this.each(function(){var i=t(this),o=i.data("bs.dropdown");o||i.data("bs.dropdown",o=new r(this)),"string"==typeof e&&o[e].call(i)})}var n=".dropdown-backdrop",s='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.3.5",r.prototype.toggle=function(o){var n=t(this);if(!n.is(".disabled, :disabled")){var s=e(n),r=s.hasClass("open");if(i(),!r){"ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",i);var a={relatedTarget:this};if(s.trigger(o=t.Event("show.bs.dropdown",a)),o.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),s.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},r.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var o=t(this);if(i.preventDefault(),i.stopPropagation(),!o.is(".disabled, :disabled")){var n=e(o),r=n.hasClass("open");if(!r&&27!=i.which||r&&27==i.which)return 27==i.which&&n.find(s).trigger("focus"),o.trigger("click");var a=" li:not(.disabled):visible a",l=n.find(".dropdown-menu"+a);if(l.length){var h=l.index(i.target);38==i.which&&h>0&&h--,40==i.which&&h
document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth ',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,o){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),s=n.length;s--;){var r=n[s];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,o){i[t]!=o&&(e[t]=o)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},i.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),i.isInStateTrue()?void 0:(clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide())},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var o=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!o)return;var n=this,s=this.tip(),r=this.getUID(this.type);this.setContent(),s.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&s.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,h=l.test(a);h&&(a=a.replace(l,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),d=s[0].offsetWidth,p=s[0].offsetHeight;if(h){var u=a,f=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+p>f.bottom?"top":"top"==a&&c.top-p f.width?"left":"left"==a&&c.left-d r.top+r.height&&(n.top=r.top+r.height-l)}else{var h=e.left-s,c=e.left+s+i;h r.right&&(n.left=r.left+r.width-c)}return n},i.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},i.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},i.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&(i=t(e.currentTarget).data("bs."+this.type),i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var o=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=o,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),n=o.data("bs.popover"),s="object"==typeof e&&e;(n||!/destroy|hide/.test(e))&&(n||o.data("bs.popover",n=new i(this,s)),"string"==typeof e&&n[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.3.5",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:' '}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var o=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=o,this}}(jQuery),+function(t){"use strict";function e(i,o){this.$body=t(document.body),this.$scrollElement=t(t(i).is(document.body)?window:i),this.options=t.extend({},e.DEFAULTS,o),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var o=t(this),n=o.data("bs.scrollspy"),s="object"==typeof i&&i;n||o.data("bs.scrollspy",n=new e(this,s)),"string"==typeof i&&n[i]()})}e.VERSION="3.3.5",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,i="offset",o=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",o=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),n=e.data("target")||e.attr("href"),s=/^#./.test(n)&&t(n);return s&&s.length&&s.is(":visible")&&[[s[i]().top+o,n]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),o=this.options.offset+i-this.$scrollElement.height(),n=this.offsets,s=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=o)return r!=(t=s[s.length-1])&&this.activate(t);if(r&&e=n[t]&&(void 0===n[t+1]||e .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}var r=o.find("> .active"),a=n&&t.support.transition&&(r.length&&r.hasClass("fade")||!!o.find("> .fade").length);r.length&&a?r.one("bsTransitionEnd",s).emulateTransitionEnd(i.TRANSITION_DURATION):s(),r.removeClass("in")};var o=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=o,this};var n=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),n=o.data("bs.affix"),s="object"==typeof e&&e;n||o.data("bs.affix",n=new i(this,s)),"string"==typeof e&&n[e]()})}var i=function(e,o){this.options=t.extend({},i.DEFAULTS,o),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.5",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,o){var n=this.$target.scrollTop(),s=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return i>n?"top":!1;if("bottom"==this.affixed)return null!=i?n+this.unpin<=s.top?!1:"bottom":t-o>=n+r?!1:"bottom";var a=null==this.affixed,l=a?n:s.top,h=a?r:e;return null!=i&&i>=n?"top":null!=o&&l+h>=t-o?"bottom":!1},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),o=this.options.offset,n=o.top,s=o.bottom,r=Math.max(t(document).height(),t(document.body).height());"object"!=typeof o&&(s=n=o),"function"==typeof n&&(n=o.top(this.$element)),"function"==typeof s&&(s=o.bottom(this.$element));var a=this.getState(r,e,n,s);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),h=t.Event(l+".bs.affix");if(this.$element.trigger(h),h.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:r-e-s})}};var o=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=o,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),o=i.data();o.offset=o.offset||{},null!=o.offsetBottom&&(o.offset.bottom=o.offsetBottom),null!=o.offsetTop&&(o.offset.top=o.offsetTop),e.call(i,o)})})}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,i,o,n){return jQuery.easing[jQuery.easing.def](t,e,i,o,n)},easeInQuad:function(t,e,i,o,n){return o*(e/=n)*e+i},easeOutQuad:function(t,e,i,o,n){return-o*(e/=n)*(e-2)+i},easeInOutQuad:function(t,e,i,o,n){return(e/=n/2)<1?o/2*e*e+i:-o/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,o,n){return o*(e/=n)*e*e+i},easeOutCubic:function(t,e,i,o,n){return o*((e=e/n-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,o,n){return(e/=n/2)<1?o/2*e*e*e+i:o/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,o,n){return o*(e/=n)*e*e*e+i},easeOutQuart:function(t,e,i,o,n){return-o*((e=e/n-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,o,n){return(e/=n/2)<1?o/2*e*e*e*e+i:-o/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,o,n){return o*(e/=n)*e*e*e*e+i},easeOutQuint:function(t,e,i,o,n){return o*((e=e/n-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,o,n){return(e/=n/2)<1?o/2*e*e*e*e*e+i:o/2*((e-=2)*e*e*e*e+2)+i},easeInSine:function(t,e,i,o,n){return-o*Math.cos(e/n*(Math.PI/2))+o+i},easeOutSine:function(t,e,i,o,n){return o*Math.sin(e/n*(Math.PI/2))+i},easeInOutSine:function(t,e,i,o,n){return-o/2*(Math.cos(Math.PI*e/n)-1)+i},easeInExpo:function(t,e,i,o,n){return 0==e?i:o*Math.pow(2,10*(e/n-1))+i},easeOutExpo:function(t,e,i,o,n){return e==n?i+o:o*(-Math.pow(2,-10*e/n)+1)+i},easeInOutExpo:function(t,e,i,o,n){return 0==e?i:e==n?i+o:(e/=n/2)<1?o/2*Math.pow(2,10*(e-1))+i:o/2*(-Math.pow(2,-10*--e)+2)+i},easeInCirc:function(t,e,i,o,n){return-o*(Math.sqrt(1-(e/=n)*e)-1)+i},easeOutCirc:function(t,e,i,o,n){return o*Math.sqrt(1-(e=e/n-1)*e)+i},easeInOutCirc:function(t,e,i,o,n){return(e/=n/2)<1?-o/2*(Math.sqrt(1-e*e)-1)+i:o/2*(Math.sqrt(1-(e-=2)*e)+1)+i},easeInElastic:function(t,e,i,o,n){var s=1.70158,r=0,a=o;if(0==e)return i;if(1==(e/=n))return i+o;if(r||(r=.3*n),a e?-.5*a*Math.pow(2,10*(e-=1))*Math.sin(2*(e*n-s)*Math.PI/r)+i:a*Math.pow(2,-10*(e-=1))*Math.sin(2*(e*n-s)*Math.PI/r)*.5+o+i},easeInBack:function(t,e,i,o,n,s){return void 0==s&&(s=1.70158),o*(e/=n)*e*((s+1)*e-s)+i},easeOutBack:function(t,e,i,o,n,s){return void 0==s&&(s=1.70158),o*((e=e/n-1)*e*((s+1)*e+s)+1)+i},easeInOutBack:function(t,e,i,o,n,s){return void 0==s&&(s=1.70158),(e/=n/2)<1?o/2*e*e*(((s*=1.525)+1)*e-s)+i:o/2*((e-=2)*e*(((s*=1.525)+1)*e+s)+2)+i},easeInBounce:function(t,e,i,o,n){return o-jQuery.easing.easeOutBounce(t,n-e,0,o,n)+i},easeOutBounce:function(t,e,i,o,n){return(e/=n)<1/2.75?7.5625*o*e*e+i:2/2.75>e?o*(7.5625*(e-=1.5/2.75)*e+.75)+i:2.5/2.75>e?o*(7.5625*(e-=2.25/2.75)*e+.9375)+i:o*(7.5625*(e-=2.625/2.75)*e+.984375)+i},easeInOutBounce:function(t,e,i,o,n){return n/2>e?.5*jQuery.easing.easeInBounce(t,2*e,0,o,n)+i:.5*jQuery.easing.easeOutBounce(t,2*e-n,0,o,n)+.5*o+i}}),function(t,e){var i=t();t.fn.dropdownHover=function(o){return"ontouchstart"in document?this:(i=i.add(this.parent()),this.each(function(){var n,s=t(this),r=s.parent(),a={delay:500,instantlyCloseOthers:!0},l={delay:t(this).data("delay"),instantlyCloseOthers:t(this).data("close-others")},h="show.bs.dropdown",c="hide.bs.dropdown",d=t.extend(!0,{},a,o,l);r.hover(function(t){return r.hasClass("open")||s.is(t.target)?(i.find(":focus").blur(),d.instantlyCloseOthers===!0&&i.removeClass("open"),e.clearTimeout(n),r.addClass("open"),void s.trigger(h)):!0},function(){n=e.setTimeout(function(){r.removeClass("open"),s.trigger(c)},200)}),s.hover(function(){i.find(":focus").blur(),d.instantlyCloseOthers===!0&&i.removeClass("open"),e.clearTimeout(n),r.addClass("open"),s.trigger(h)}),r.find(".dropdown-submenu").each(function(){var i,o=t(this);o.hover(function(){e.clearTimeout(i),o.children(".dropdown-menu").show(),o.siblings().children(".dropdown-menu").hide()},function(){var t=o.children(".dropdown-menu");i=e.setTimeout(function(){t.hide()},d.delay)})})}))},t(document).ready(function(){t('[data-hover="dropdown"]').dropdownHover()})}(jQuery,this),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){function e(t){return a.raw?t:encodeURIComponent(t)}function i(t){return a.raw?t:decodeURIComponent(t)}function o(t){return e(a.json?JSON.stringify(t):String(t))}function n(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t=decodeURIComponent(t.replace(r," ")),a.json?JSON.parse(t):t}catch(e){}}function s(e,i){var o=a.raw?e:n(e);return t.isFunction(i)?i(o):o}var r=/\+/g,a=t.cookie=function(n,r,l){if(arguments.length>1&&!t.isFunction(r)){if(l=t.extend({},a.defaults,l),"number"==typeof l.expires){var h=l.expires,c=l.expires=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*h)}return document.cookie=[e(n),"=",o(r),l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}for(var d=n?void 0:{},p=document.cookie?document.cookie.split("; "):[],u=0,f=p.length;f>u;u++){var m=p[u].split("="),g=i(m.shift()),v=m.join("=");if(n===g){d=s(v,r);break}n||void 0===(v=s(v))||(d[g]=v)}return d};a.defaults={},t.removeCookie=function(e,i){return t.cookie(e,"",t.extend({},i,{expires:-1})),!t.cookie(e)}}),function(t,e,i,o){function n(e,i){this.settings=null,this.options=t.extend({},n.Defaults,i),this.$element=t(e),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},t.each(["onResize","onThrottledResize"],t.proxy(function(e,i){this._handlers[i]=t.proxy(this[i],this)},this)),t.each(n.Plugins,t.proxy(function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)},this)),t.each(n.Workers,t.proxy(function(e,i){this._pipe.push({filter:i.filter,run:t.proxy(i.run,this)})},this)),this.setup(),this.initialize()}n.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},n.Width={Default:"default",Inner:"inner",Outer:"outer"},n.Type={Event:"event",State:"state"},n.Plugins={},n.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,o=this.settings.rtl,n={width:"auto","margin-left":o?e:"","margin-right":o?"":e};!i&&this.$stage.children().css(n),t.css=n}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,o=this._items.length,n=!this.settings.autoWidth,s=[];for(t.items={merge:!1,width:e};o--;)i=this._mergers[o],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=i>1||t.items.merge,s[o]=n?e*i:this._items[o].width();this._widths=s}},{filter:["items","settings"],run:function(){var e=[],i=this._items,o=this.settings,n=Math.max(2*o.items,4),s=2*Math.ceil(i.length/2),r=o.loop&&i.length?o.rewind?n:Math.max(n,s):0,a="",l="";for(r/=2;r--;)e.push(this.normalize(e.length/2,!0)),a+=i[e[e.length-1]][0].outerHTML,e.push(this.normalize(i.length-1-(e.length-1)/2,!0)),l=i[e[e.length-1]][0].outerHTML+l;this._clones=e,t(a).addClass("cloned").appendTo(this.$stage),t(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,o=0,n=0,s=[];++i i;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+s*n,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],n.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var e,i,n;e=this.$element.find("img"),i=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:o,n=this.$element.children(i).width(),e.length&&0>=n&&this.preloadAutoWidthImages(e)}this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap(''),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},n.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,o=-1,n=null;i?(t.each(i,function(t){e>=t&&t>o&&(o=Number(t))}),n=t.extend({},this.options,i[o]),delete n.responsive,n.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+o))):n=t.extend({},this.options),(null===this.settings||this._breakpoint!==o)&&(this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=o,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},n.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},n.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},n.prototype.update=function(){for(var e=0,i=this._pipe.length,o=t.proxy(function(t){return this[t]},this._invalidated),n={};i>e;)(this._invalidated.all||t.grep(this._pipe[e].filter,o).length>0)&&this._pipe[e].run(n),e++;this._invalidated={},!this.is("valid")&&this.enter("valid")},n.prototype.width=function(t){switch(t=t||n.Width.Default){case n.Width.Inner:case n.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},n.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},n.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},n.prototype.onResize=function(){return this._items.length?this._width===this.$element.width()?!1:this.$element.is(":visible")?(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized"))):!1:!1},n.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),this.settings.responsive!==!1&&this.on(e,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},n.prototype.onDragStart=function(e){var o=null;3!==e.which&&(t.support.transform?(o=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),o={x:o[16===o.length?12:4],y:o[16===o.length?13:5]}):(o=this.$stage.position(),o={x:this.settings.rtl?o.left+this.$stage.width()-this.width()+this.settings.margin:o.left,y:o.top}),this.is("animating")&&(t.support.transform?this.animate(o.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=o,this._drag.stage.current=o,this._drag.pointer=this.pointer(e),t(i).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(i).one("mousemove.owl.core touchmove.owl.core",t.proxy(function(e){var o=this.difference(this._drag.pointer,this.pointer(e));t(i).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(o.x) 0^this.settings.rtl?"left":"right";t(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==o.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(n.x,0!==o.x?s:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=s,(Math.abs(o.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},n.prototype.closest=function(e,i){var o=-1,n=30,s=this.width(),r=this.coordinates();return this.settings.freeDrag||t.each(r,t.proxy(function(t,a){return"left"===i&&e>a-n&&a+n>e?o=t:"right"===i&&e>a-s-n&&a-s+n>e?o=t+1:this.op(e,"<",a)&&this.op(e,">",r[t+1]||a-s)&&(o="left"===i?t+1:t),-1===o},this)),this.settings.loop||(this.op(e,">",r[this.minimum()])?o=e=this.minimum():this.op(e,"<",r[this.maximum()])&&(o=e=this.maximum())),o},n.prototype.animate=function(e){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"}):i?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},n.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},n.prototype.current=function(t){if(t===o)return this._current;if(0===this._items.length)return o;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==o&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},n.prototype.invalidate=function(e){return"string"===t.type(e)&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,function(t,e){return e})},n.prototype.reset=function(t){t=this.normalize(t),t!==o&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},n.prototype.normalize=function(t,e){var i=this._items.length,n=e?0:this._clones.length;return!this.isNumeric(t)||1>i?t=o:(0>t||t>=i+n)&&(t=((t-n/2)%i+i)%i+n/2),t},n.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},n.prototype.maximum=function(t){var e,i=this.settings,o=this._coordinates.length,n=Math.abs(this._coordinates[o-1])-this._width,s=-1;if(i.loop)o=this._clones.length/2+this._items.length-1;else if(i.autoWidth||i.merge)for(;o-s>1;)Math.abs(this._coordinates[e=o+s>>1]) 0)-(0>n),r=this._items.length,a=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(n)>r/2&&(n+=-1*s*r),t=i+n,o=((t-a)%r+r)%r+a,o!==t&&l>=o-n&&o-n>0&&(i=o-n,t=o,this.reset(i))):this.settings.rewind?(l+=1,t=(t%l+l)%l):t=Math.max(a,Math.min(l,t)),this.speed(this.duration(i,t,e)),this.current(t),this.$element.is(":visible")&&this.update()},n.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},n.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},n.prototype.onTransitionEnd=function(t){return t!==o&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0))?!1:(this.leave("animating"),void this.trigger("translated"))},n.prototype.viewport=function(){var o;if(this.options.responsiveBaseElement!==e)o=t(this.options.responsiveBaseElement).width();else if(e.innerWidth)o=e.innerWidth;else{if(!i.documentElement||!i.documentElement.clientWidth)throw"Can not detect viewport width.";o=i.documentElement.clientWidth}return o},n.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},n.prototype.add=function(e,i){var n=this.relative(this._current);i=i===o?this._items.length:this.normalize(i,!0),e=e instanceof jQuery?e:t(e),this.trigger("add",{content:e,position:i}),e=this.prepare(e),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[i-1].after(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(e),this._items.splice(i,0,e),this._mergers.splice(i,0,1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[n]&&this.reset(this._items[n].index()),this.invalidate("items"),this.trigger("added",{content:e,position:i})},n.prototype.remove=function(t){t=this.normalize(t,!0),t!==o&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},n.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy(function(e,i){this.enter("pre-loading"),i=t(i),t(new Image).one("load",t.proxy(function(t){i.attr("src",t.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))},this))},n.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(i).off(".owl.core"),this.settings.responsive!==!1&&(e.clearTimeout(this.resizeTimer),this.off(e,"resize",this._handlers.onThrottledResize));for(var o in this._plugins)this._plugins[o].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},n.prototype.op=function(t,e,i){var o=this.settings.rtl;switch(e){case"<":return o?t>i:i>t;case">":return o?i>t:t>i;case">=":return o?i>=t:t>=i;case"<=":return o?t>=i:i>=t}},n.prototype.on=function(t,e,i,o){t.addEventListener?t.addEventListener(e,i,o):t.attachEvent&&t.attachEvent("on"+e,i)},n.prototype.off=function(t,e,i,o){t.removeEventListener?t.removeEventListener(e,i,o):t.detachEvent&&t.detachEvent("on"+e,i)},n.prototype.trigger=function(e,i,o){var s={item:{count:this._items.length,index:this.current()}},r=t.camelCase(t.grep(["on",e,o],function(t){return t}).join("-").toLowerCase()),a=t.Event([e,"owl",o||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},s,i));return this._supress[e]||(t.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(a)}),this.register({type:n.Type.Event,name:e}),this.$element.trigger(a),this.settings&&"function"==typeof this.settings[r]&&this.settings[r].call(this,a)),a},n.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]===o&&(this._states.current[e]=0),this._states.current[e]++},this))},n.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy(function(t,e){this._states.current[e]--},this))},n.prototype.register=function(e){if(e.type===n.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var i=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!i||!i.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:i.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===n.Type.State&&(this._states.tags[e.name]=this._states.tags[e.name]?this._states.tags[e.name].concat(e.tags):e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy(function(i,o){return t.inArray(i,this._states.tags[e.name])===o},this)))},n.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},n.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},n.prototype.pointer=function(t){var i={x:null,y:null};return t=t.originalEvent||t||e.event,t=t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,t.pageX?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i},n.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},n.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each(function(){var o=t(this),s=o.data("owl.carousel");s||(s=new n(this,"object"==typeof e&&e),o.data("owl.carousel",s),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(e,i){s.register({type:n.Type.Event,name:i}),s.$element.on(i+".owl.carousel.core",t.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([i]),s[i].apply(this,[].slice.call(arguments,1)),this.release([i]))},s))})),"string"==typeof e&&"_"!==e.charAt(0)&&s[e].apply(s,i)})},t.fn.owlCarousel.Constructor=n}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers) };i.Defaults={autoRefresh:!0,autoRefreshInterval:500},i.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},i.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},i.prototype.destroy=function(){var t,i;e.clearInterval(this._interval);for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=i}(window.Zepto||window.jQuery,window,document),function(t,e,i,o){var n=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type))for(var i=this._core.settings,n=i.center&&Math.ceil(i.items/2)||i.items,s=i.center&&-1*n||0,r=(e.property&&e.property.value!==o?e.property.value:this._core.current())+s,a=this._core.clones().length,l=t.proxy(function(t,e){this.load(e)},this);s++ -1||(n.each(t.proxy(function(i,o){var n,s=t(o),r=e.devicePixelRatio>1&&s.attr("data-src-retina")||s.attr("data-src");this._core.trigger("load",{element:s,url:r},"lazy"),s.is("img")?s.one("load.owl.lazy",t.proxy(function(){s.css("opacity",1),this._core.trigger("loaded",{element:s,url:r},"lazy")},this)).attr("src",r):(n=new Image,n.onload=t.proxy(function(){s.css({"background-image":"url("+r+")",opacity:"1"}),this._core.trigger("loaded",{element:s,url:r},"lazy")},this),n.src=r)},this)),this._loaded.push(o.get(0)))},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=n}(window.Zepto||window.jQuery,window,document),function(t){var e=function(i){this._core=i,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&"position"==t.property.name&&this.update()},this),"loaded.owl.lazy":t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var e=this._core._current,i=e+this._core.settings.items,o=this._core.$stage.children().toArray().slice(e,i),n=[],s=0;t.each(o,function(e,i){n.push(t(i).height())}),s=Math.max.apply(null,n),this._core.$stage.parent().height(s).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(t,e,i){var o=function(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))}},this)},this._core.options=t.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy(function(t){this.play(t)},this))};o.Defaults={video:!1,videoHeight:!1,videoWidth:!1},o.prototype.fetch=function(t,e){var i=function(){return t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube"}(),o=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),n=t.attr("data-width")||this._core.settings.videoWidth,s=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if(o=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),o[3].indexOf("youtu")>-1)i="youtube";else if(o[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(o[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}o=o[6],this._videos[r]={type:i,id:o,width:n,height:s},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},o.prototype.thumbnail=function(e,i){var o,n,s,r=i.width&&i.height?'style="width:'+i.width+"px;height:"+i.height+'px;"':"",a=e.find("img"),l="src",h="",c=this._core.settings,d=function(t){n='',o=c.lazyLoad?'':'',e.after(o),e.after(n)};return e.wrap('"),this._core.settings.lazyLoad&&(l="data-src",h="owl-lazy"),a.length?(d(a.attr(l)),a.remove(),!1):void("youtube"===i.type?(s="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",d(s)):"vimeo"===i.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t[0].thumbnail_large,d(s)}}):"vzaar"===i.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t.framegrab_url,d(s)}}))},o.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},o.prototype.play=function(e){var i,o=t(e.target),n=o.closest("."+this._core.settings.itemClass),s=this._videos[n.attr("data-video")],r=s.width||"100%",a=s.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),n=this._core.items(this._core.relative(n.index())),this._core.reset(n.index()),"youtube"===s.type?i='':"vimeo"===s.type?i='':"vzaar"===s.type&&(i=''),t(' '+i+"").insertAfter(n.find(".owl-video")),this._playing=n.addClass("owl-video-playing"))},o.prototype.isInFullScreen=function(){var e=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},o.prototype.destroy=function(){var t,e;this._core.$element.off("click.owl.video");for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=o}(window.Zepto||window.jQuery,window,document),function(t,e,i,o){var n=function(e){this.core=e,this.core.options=t.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=o,this.next=o,this.handlers={"change.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":t.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,i=t.proxy(this.clear,this),o=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),s=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),o.one(t.support.animation.end,i).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r)),s&&n.one(t.support.animation.end,i).addClass("animated owl-animated-in").addClass(s))}},n.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=n}(window.Zepto||window.jQuery,window,document),function(t,e,i){var o=function(e){this._core=e,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":t.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":t.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":t.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":t.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},o.Defaults,this._core.options)};o.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},o.prototype.play=function(){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},o.prototype._getNextTimeout=function(o,n){return this._timeout&&e.clearTimeout(this._timeout),e.setTimeout(t.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||i.hidden||this._core.next(n||this._core.settings.autoplaySpeed)},this),o||this._core.settings.autoplayTimeout)},o.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},o.prototype.stop=function(){this._core.is("rotating")&&(e.clearTimeout(this._timeout),this._core.leave("rotating"))},o.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},o.prototype.destroy=function(){var t,e;this.stop();for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=o}(window.Zepto||window.jQuery,window,document),function(t){"use strict";var e=function(i){this._core=i,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push(''+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"")},this),"added.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":t.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":t.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":t.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=t.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var e,i=this._core.settings;this._controls.$relative=(i.navContainer?t(i.navContainer):t("").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy(function(){this.prev(i.navSpeed)},this)),this._controls.$next=t("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy(function(){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[t("").addClass(i.dotClass).append(t("")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?t(i.dotsContainer):t("").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",t.proxy(function(e){var o=t(e.target).parent().is(this._controls.$absolute)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(o,i.dotsSpeed)},this));for(e in this._overrides)this._core[e]=t.proxy(this[e],this)},e.prototype.destroy=function(){var t,e,i,o;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(o in this.overides)this._core[o]=this._overrides[o];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i,o=this._core.clones().length/2,n=o+this._core.items().length,s=this._core.maximum(!0),r=this._core.settings,a=r.center||r.autoWidth||r.dotsData?1:r.dotsEach||r.items;if("page"!==r.slideBy&&(r.slideBy=Math.min(r.slideBy,r.items)),r.dots||"page"==r.slideBy)for(this._pages=[],t=o,e=0,i=0;n>t;t++){if(e>=a||0===e){if(this._pages.push({start:Math.min(s,t-o),end:t-o+a-1}),Math.min(s,t-o)===s)break;e=0,++i}e+=this._core.mergers(this._core.relative(t))}},e.prototype.draw=function(){var e,i=this._core.settings,o=this._core.items().length<=i.items,n=this._core.relative(this._core.current()),s=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||o),i.nav&&(this._controls.$previous.toggleClass("disabled",!s&&n<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!s&&n>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||o),i.dots&&(e=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==e?this._controls.$absolute.html(this._templates.join("")):e>0?this._controls.$absolute.append(new Array(e+1).join(this._templates[0])):0>e&&this._controls.$absolute.children().slice(e).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(t.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},e.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,t.proxy(function(t){return t.start<=e&&t.end>=e},this)).pop()},e.prototype.getPosition=function(e){var i,o,n=this._core.settings;return"page"==n.slideBy?(i=t.inArray(this.current(),this._pages),o=this._pages.length,e?++i:--i,i=this._pages[(i%o+o)%o].start):(i=this._core.relative(this._core.current()),o=this._core.items().length,e?i+=n.slideBy:i-=n.slideBy),i},e.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},e.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},e.prototype.to=function(e,i,o){var n;!o&&this._pages.length?(n=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%n+n)%n].start,i)):t.proxy(this._overrides.to,this._core)(e,i)},t.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(t,e,i,o){"use strict";var n=function(i){this._core=i,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy(function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":t.proxy(function(e){if(e.namespace){var i=t(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=e.content}},this),"changed.owl.carousel":t.proxy(function(i){if(i.namespace&&"position"===i.property.name){var o=this._core.items(this._core.relative(this._core.current())),n=t.map(this._hashes,function(t,e){return t===o?e:null}).join();if(!n||e.location.hash.slice(1)===n)return;e.location.hash=n}},this)},this._core.options=t.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy(function(){var t=e.location.hash.substring(1),i=this._core.$stage.children(),n=this._hashes[t]&&i.index(this._hashes[t]);n!==o&&n!==this._core.current()&&this._core.to(this._core.relative(n),!1,!0)},this))};n.Defaults={URLhashListener:!1},n.prototype.destroy=function(){var i,o;t(e).off("hashchange.owl.navigation");for(i in this._handlers)this._core.$element.off(i,this._handlers[i]);for(o in Object.getOwnPropertyNames(this))"function"!=typeof this[o]&&(this[o]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,o){function n(e,i){var n=!1,s=e.charAt(0).toUpperCase()+e.slice(1);return t.each((e+" "+a.join(s+" ")+s).split(" "),function(t,e){return r[e]!==o?(n=i?e:!0,!1):void 0}),n}function s(t){return n(t,!0)}var r=t("").get(0).style,a="Webkit Moz O ms".split(" "),l={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},h={csstransforms:function(){return!!n("transform")},csstransforms3d:function(){return!!n("perspective")},csstransitions:function(){return!!n("transition")},cssanimations:function(){return!!n("animation")}};h.csstransitions()&&(t.support.transition=new String(s("transition")),t.support.transition.end=l.transition.end[t.support.transition]),h.cssanimations()&&(t.support.animation=new String(s("animation")),t.support.animation.end=l.animation.end[t.support.animation]),h.csstransforms()&&(t.support.transform=new String(s("transform")),t.support.transform3d=h.csstransforms3d())}(window.Zepto||window.jQuery,window,document),function(t){t.fn.extend({easyResponsiveTabs:function(e){{var i={type:"default",width:"auto",fit:!0,closed:!1,activate:function(){}},e=t.extend(i,e),o=e,n=o.type,s=o.fit,r=o.width,a="vertical",l="accordion",h=window.location.hash;!(!window.history||!history.replaceState)}t(this).bind("tabactivate",function(t,i){"function"==typeof e.activate&&e.activate.call(i,t)}),this.each(function(){function i(){n==a&&o.addClass("resp-vtabs"),1==s&&o.css({width:"100%"}),n==l&&(o.addClass("resp-easy-accordion"),o.find(".resp-tabs-list").css("display","none"))}var o=t(this),c=o.find("ul.resp-tabs-list"),d=o.attr("id");o.find("ul.resp-tabs-list li").addClass("resp-tab-item"),o.css({display:"block",width:r}),o.find(".resp-tabs-container > div").addClass("resp-tab-content"),i();var p;o.find(".resp-tab-content").before(" ");var u=0;o.find(".resp-accordion").each(function(){p=t(this);var e=o.find(".resp-tab-item:eq("+u+")"),i=o.find(".resp-accordion:eq("+u+")");i.append(e.html()),i.data(e.data()),p.attr("aria-controls","tab_item-"+u),u++});var f,m=0;o.find(".resp-tab-item").each(function(){$tabItem=t(this),$tabItem.attr("aria-controls","tab_item-"+m),$tabItem.attr("role","tab");var e=0;o.find(".resp-tab-content").each(function(){f=t(this),f.attr("aria-labelledby","tab_item-"+e),e++}),m++});var g=0;if(""!=h){var v=h.match(new RegExp(d+"([0-9]+)"));null!==v&&2===v.length&&(g=parseInt(v[1],10)-1,g>m&&(g=0))}t(o.find(".resp-tab-item")[g]).addClass("resp-tab-active"),e.closed===!0||"accordion"===e.closed&&!c.is(":visible")||"tabs"===e.closed&&c.is(":visible")?t(o.find(".resp-tab-content")[g]).addClass("resp-tab-content-active resp-accordion-closed"):(t(o.find(".resp-accordion")[g]).addClass("resp-tab-active"),t(o.find(".resp-tab-content")[g]).addClass("resp-tab-content-active").attr("style","display:block")),o.find("[role=tab]").each(function(){var e=t(this);e.click(function(){var e=t(this),i=e.attr("aria-controls");return e.hasClass("resp-accordion")&&e.hasClass("resp-tab-active")?(o.find(".resp-tab-content-active").slideUp("",function(){t(this).addClass("resp-accordion-closed")}),e.removeClass("resp-tab-active"),!1):(!e.hasClass("resp-tab-active")&&e.hasClass("resp-accordion")?(o.find(".resp-tab-active").removeClass("resp-tab-active"),o.find(".resp-tab-content-active").slideUp().removeClass("resp-tab-content-active resp-accordion-closed"),o.find("[aria-controls="+i+"]").addClass("resp-tab-active"),o.find(".resp-tab-content[aria-labelledby="+i+"]").slideDown().addClass("resp-tab-content-active")):(o.find(".resp-tab-active").removeClass("resp-tab-active"),o.find(".resp-tab-content-active").removeAttr("style").removeClass("resp-tab-content-active").removeClass("resp-accordion-closed"),o.find("[aria-controls="+i+"]").addClass("resp-tab-active"),o.find(".resp-tab-content[aria-labelledby="+i+"]").addClass("resp-tab-content-active").attr("style","display:block")),void e.trigger("tabactivate",e))})}),t(window).resize(function(){o.find(".resp-accordion-closed").removeAttr("style")})})}})}(jQuery),function(t){t.fn.hoverIntent=function(e,i,o){var n={interval:100,sensitivity:7,timeout:0};n="object"==typeof e?t.extend(n,e):t.isFunction(i)?t.extend(n,{over:e,out:i,selector:o}):t.extend(n,{over:e,out:e,selector:i});var s,r,a,l,h=function(t){s=t.pageX,r=t.pageY},c=function(e,i){return i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(a-s)+Math.abs(l-r)
").css(t.extend({},i)),d.data.outer=t(" ").css(t.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px",direction:"ltr"},i)).append(d.data.inner).appendTo("body"),d.data.outer.scrollLeft(1e3).scrollTop(1e3);var o={height:Math.ceil(d.data.outer.offset().top-d.data.inner.offset().top||0),width:Math.ceil(d.data.outer.offset().left-d.data.inner.offset().left||0)};return d.data.inner.remove(),d.data.outer.remove(),o}function n(i,o){return t(e).on({"blur.scrollbar":function(){t(e).add("body").off(".scrollbar"),i&&i()},"dragstart.scrollbar":function(t){return t.preventDefault(),!1},"mouseup.scrollbar":function(){t(e).add("body").off(".scrollbar"),i&&i()}}),t("body").on({"selectstart.scrollbar":function(t){return t.preventDefault(),!1}}),o&&o.preventDefault(),!1}function s(){var t=o(!0);return!(t.height||t.width)}function r(t){var e=t.originalEvent;return e.axis&&e.axis===e.HORIZONTAL_AXIS?!1:e.wheelDeltaX?!1:!0}var a=!1,l=1,h="px",c=!1,d={data:{index:0,name:"scrollbar"},macosx:/mac/i.test(navigator.platform),mobile:/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent),overlay:null,scroll:null,scrolls:[],webkit:/webkit/i.test(navigator.userAgent)&&!/edge\/\d+/i.test(navigator.userAgent),log:a?function(e,o){var n=e;o&&"string"!=typeof e&&(n=[],t.each(e,function(t,e){n.push('"'+t+'": '+e)}),n=n.join(", ")),i.console&&i.console.log}:function(){}},p={autoScrollSize:!0,autoUpdate:!0,debug:!1,disableBodyScroll:!1,duration:200,ignoreMobile:!0,ignoreOverlay:!0,scrollStep:30,showArrows:!1,stepScrolling:!0,type:"simple",scrollx:null,scrolly:null,onDestroy:null,onInit:null,onScroll:null,onUpdate:null},u=function(e,n){c=t("body").hasClass("rtl"),d.scroll||(d.log("Init jQuery Scrollbar v0.2.5"),d.overlay=s(),d.scroll=o(),g(),t(i).resize(function(){var t=!1;if(d.scroll&&(d.scroll.height||d.scroll.width)){var e=o();(e.height!=d.scroll.height||e.width!=d.scroll.width)&&(d.scroll=e,t=!0)}g(t)})),this.container=e,this.options=t.extend({},p,i.jQueryScrollbarOptions||{}),this.scrollTo=null,this.scrollx={},this.scrolly={},this.init(n)};u.prototype={destroy:function(){if(this.wrapper){var i=this.container.scrollLeft(),o=this.container.scrollTop();this.container.insertBefore(this.wrapper).css({height:"",margin:""}).removeClass("scroll-content").removeClass("scroll-scrollx_visible").removeClass("scroll-scrolly_visible").off(".scrollbar").scrollLeft(i).scrollTop(o),this.scrollx.scrollbar.removeClass("scroll-scrollx_visible").find("div").andSelf().off(".scrollbar"),this.scrolly.scrollbar.removeClass("scroll-scrolly_visible").find("div").andSelf().off(".scrollbar"),this.wrapper.remove(),t(e).add("body").off(".scrollbar"),t.isFunction(this.options.onDestroy)&&this.options.onDestroy.apply(this,[this.container])}},getScrollbar:function(e){var i=this.options["scroll"+e],o={advanced:'',simple:''},n=o[this.options.type]?this.options.type:"advanced";return i=i?"string"==typeof i?t(i).appendTo(this.wrapper):t(i):t("").addClass("scroll-element").html(o[n]).appendTo(this.wrapper),this.options.showArrows&&i.addClass("scroll-element_arrows_visible"),i.addClass("scroll-"+e)},init:function(i){var o=this,s=this.container,a=this.containerWrapper||s,p=t.extend(this.options,i||{}),u={x:this.scrollx,y:this.scrolly},f=this.wrapper,m={scrollLeft:s.scrollLeft(),scrollTop:s.scrollTop()};if(d.mobile&&p.ignoreMobile||d.overlay&&p.ignoreOverlay||d.macosx&&!d.webkit)return!1;if(f)a.css(c?{height:"","margin-bottom":-1*d.scroll.height+h,"margin-left":-1*d.scroll.width+h}:{height:"","margin-bottom":-1*d.scroll.height+h,"margin-right":-1*d.scroll.width+h});else{if(this.wrapper=f=t("").addClass("scroll-wrapper").addClass(s.attr("class")).css("position","absolute"==s.css("position")?"absolute":"relative").insertBefore(s).append(s),s.is("textarea")&&(this.containerWrapper=a=t("'),o.$elem.after(o.spinner)),o.options.onImageSwap(o.$elem),n.onload=function(){o.largeWidth=n.width,o.largeHeight=n.height,o.zoomImage=i,"undefined"!=typeof o.zoomWindow&&(o.zoomWindow.css({"background-size":o.largeWidth+"px "+o.largeHeight+"px"}),o.zoomWindow.css({"background-size":o.largeWidth+"px "+o.largeHeight+"px"}),o.swapAction(e,i))},n.src=i},swapAction:function(e,i){var o=this,n=new Image;if(n.onload=function(){o.nzHeight=n.height,o.nzWidth=n.width,o.options.onImageSwapComplete(o.$elem),o.doneCallback()},n.src=e,o.currentZoomLevel=o.options.zoomLevel,o.options.maxZoomLevel=!1,"lens"==o.options.zoomType&&o.zoomLens.css({backgroundImage:"url('"+i+"')"}),"window"==o.options.zoomType&&o.zoomWindow.css({backgroundImage:"url('"+i+"')"}),"inner"==o.options.zoomType&&o.zoomWindow.css({backgroundImage:"url('"+i+"')"}),o.currentImage=i,o.options.imageCrossfade){var s=o.$elem,r=s.clone();if(o.$elem.attr("src",e),o.$elem.after(r),r.stop(!0).fadeOut(o.options.imageCrossfade,function(){t(this).remove()}),o.$elem.width("auto").removeAttr("width"),o.$elem.height("auto").removeAttr("height"),s.fadeIn(o.options.imageCrossfade),o.options.tint&&"inner"!=o.options.zoomType){var a=o.zoomTintImage,l=a.clone();o.zoomTintImage.attr("src",i),o.zoomTintImage.after(l),l.stop(!0).fadeOut(o.options.imageCrossfade,function(){t(this).remove()}),a.fadeIn(o.options.imageCrossfade),o.zoomTint.css({height:o.$elem.height()}),o.zoomTint.css({width:o.$elem.width()})}o.zoomContainer.css("height",o.$elem.height()),o.zoomContainer.css("width",o.$elem.width()),"inner"==o.options.zoomType&&(o.options.constrainType||(o.zoomWrap.parent().css("height",o.$elem.height()),o.zoomWrap.parent().css("width",o.$elem.width()),o.zoomWindow.css("height",o.$elem.height()),o.zoomWindow.css("width",o.$elem.width()))),o.options.imageCrossfade&&(o.zoomWrap.css("height",o.$elem.height()),o.zoomWrap.css("width",o.$elem.width()))}else o.$elem.attr("src",e),o.options.tint&&(o.zoomTintImage.attr("src",i),o.zoomTintImage.attr("height",o.$elem.height()),o.zoomTintImage.css({height:o.$elem.height()}),o.zoomTint.css({height:o.$elem.height()})),o.zoomContainer.css("height",o.$elem.height()),o.zoomContainer.css("width",o.$elem.width()),o.options.imageCrossfade&&(o.zoomWrap.css("height",o.$elem.height()),o.zoomWrap.css("width",o.$elem.width()));o.options.constrainType&&("height"==o.options.constrainType&&(o.zoomContainer.css("height",o.options.constrainSize),o.zoomContainer.css("width","auto"),o.options.imageCrossfade?(o.zoomWrap.css("height",o.options.constrainSize),o.zoomWrap.css("width","auto"),o.constwidth=o.zoomWrap.width()):(o.$elem.css("height",o.options.constrainSize),o.$elem.css("width","auto"),o.constwidth=o.$elem.width()),"inner"==o.options.zoomType&&(o.zoomWrap.parent().css("height",o.options.constrainSize),o.zoomWrap.parent().css("width",o.constwidth),o.zoomWindow.css("height",o.options.constrainSize),o.zoomWindow.css("width",o.constwidth)),o.options.tint&&(o.tintContainer.css("height",o.options.constrainSize),o.tintContainer.css("width",o.constwidth),o.zoomTint.css("height",o.options.constrainSize),o.zoomTint.css("width",o.constwidth),o.zoomTintImage.css("height",o.options.constrainSize),o.zoomTintImage.css("width",o.constwidth))),"width"==o.options.constrainType&&(o.zoomContainer.css("height","auto"),o.zoomContainer.css("width",o.options.constrainSize),o.options.imageCrossfade?(o.zoomWrap.css("height","auto"),o.zoomWrap.css("width",o.options.constrainSize),o.constheight=o.zoomWrap.height()):(o.$elem.css("height","auto"),o.$elem.css("width",o.options.constrainSize),o.constheight=o.$elem.height()),"inner"==o.options.zoomType&&(o.zoomWrap.parent().css("height",o.constheight),o.zoomWrap.parent().css("width",o.options.constrainSize),o.zoomWindow.css("height",o.constheight),o.zoomWindow.css("width",o.options.constrainSize)),o.options.tint&&(o.tintContainer.css("height",o.constheight),o.tintContainer.css("width",o.options.constrainSize),o.zoomTint.css("height",o.constheight),o.zoomTint.css("width",o.options.constrainSize),o.zoomTintImage.css("height",o.constheight),o.zoomTintImage.css("width",o.options.constrainSize))))},doneCallback:function(){var t=this;t.options.loadingIcon&&t.spinner.hide(),t.nzOffset=t.$elem.offset(),t.nzWidth=t.$elem.width(),t.nzHeight=t.$elem.height(),t.currentZoomLevel=t.options.zoomLevel,t.widthRatio=t.largeWidth/t.nzWidth,t.heightRatio=t.largeHeight/t.nzHeight,"window"==t.options.zoomType&&(lensHeight=t.nzHeight").insertBefore(s).append(s),f.addClass("scroll-textarea")),a.addClass("scroll-content").css(c?{height:"","margin-bottom":-1*d.scroll.height+h,"margin-left":-1*d.scroll.width+h}:{height:"","margin-bottom":-1*d.scroll.height+h,"margin-right":-1*d.scroll.width+h}),s.on("scroll.scrollbar",function(){t.isFunction(p.onScroll)&&p.onScroll.call(o,{maxScroll:u.y.maxScrollOffset,scroll:s.scrollTop(),size:u.y.size,visible:u.y.visible},{maxScroll:u.x.maxScrollOffset,scroll:s.scrollLeft(),size:u.x.size,visible:u.x.visible}),u.x.isVisible&&u.x.scroller.css(c?"right":"left",s.scrollLeft()*u.x.kx+h),u.y.isVisible&&u.y.scroller.css("top",s.scrollTop()*u.y.kx+h)}),f.on("scroll",function(){f.scrollTop(0).scrollLeft(0)}),p.disableBodyScroll){var g=function(t){return r(t)?u.y.isVisible&&u.y.mousewheel(t):u.x.isVisible&&u.x.mousewheel(t),t.preventDefault(),!1};f.on({"MozMousePixelScroll.scrollbar":g,"mousewheel.scrollbar":g}),d.mobile&&f.on("touchstart.scrollbar",function(i){var o=i.originalEvent.touches&&i.originalEvent.touches[0]||i,n={pageX:o.pageX,pageY:o.pageY};if(c)var r={right:s.scrollLeft(),top:s.scrollTop()};else var r={left:s.scrollLeft(),top:s.scrollTop()};t(e).on({"touchmove.scrollbar":function(t){var e=t.originalEvent.targetTouches&&t.originalEvent.targetTouches[0]||t;s.scrollLeft(c?r.right:r.left+n.pageX-e.pageX),s.scrollTop(r.top+n.pageY-e.pageY),t.preventDefault()},"touchend.scrollbar":function(){t(e).off(".scrollbar")}})})}t.isFunction(p.onInit)&&p.onInit.apply(this,[s])}t.each(u,function(i,a){var h=null,d=1,m="x"==i?"scrollLeft":"scrollTop",g=p.scrollStep,v=function(){var t=s[m]();s[m](t+g),1==d&&t+g>=y&&(t=s[m]()),-1==d&&y>=t+g&&(t=s[m]()),s[m]()==t&&h&&h()},y=0;a.scrollbar||(a.scrollbar=o.getScrollbar(i),a.scroller=a.scrollbar.find(".scroll-bar"),a.mousewheel=function(t){if(!a.isVisible||"x"==i&&r(t))return!0;if("y"==i&&!r(t))return u.x.mousewheel(t),!0;var e=-1*t.originalEvent.wheelDelta||t.originalEvent.detail,n=a.size-a.visible-a.offset;return 0>=y&&0>e||y>=n&&e>0?!0:(y+=e,0>y&&(y=0),y>n&&(y=n),o.scrollTo=o.scrollTo||{},o.scrollTo[m]=y,setTimeout(function(){o.scrollTo&&(s.stop().animate(o.scrollTo,240,"linear",function(){y=s[m]() }),o.scrollTo=null)},1),t.preventDefault(),!1)},a.scrollbar.on({"MozMousePixelScroll.scrollbar":a.mousewheel,"mousewheel.scrollbar":a.mousewheel,"mouseenter.scrollbar":function(){y=s[m]()}}),a.triggerEvent=function(t){var e=a.mousewheel(t);return e?!0:(t.preventDefault,!1)},f.on({"MozMousePixelScroll.scrollbar":a.triggerEvent,"mousewheel.scrollbar":a.triggerEvent,"mouseenter.scrollbar":function(){y=s[m]()}}),a.scrollbar.find(".scroll-arrow, .scroll-element_track").on("mousedown.scrollbar",function(e){if(e.which!=l)return!0;d=1;var r={eventOffset:e["x"==i?"pageX":"pageY"],maxScrollValue:a.size-a.visible-a.offset,scrollbarOffset:a.scroller.offset()["x"==i?c?"right":"left":"top"],scrollbarSize:a.scroller["x"==i?"outerWidth":"outerHeight"]()},u=0,f=0;return t(this).hasClass("scroll-arrow")?(d=t(this).hasClass("scroll-arrow_more")?1:-1,g=p.scrollStep*d,y=d>0?r.maxScrollValue:0):(d=r.eventOffset>r.scrollbarOffset+r.scrollbarSize?1:r.eventOffset'),e.$container.append(e.zoomContainer),e.options.containLensZoom&&"lens"==e.options.zoomType&&e.zoomContainer.css("overflow","hidden"),"inner"!=e.options.zoomType&&(e.zoomLens=t("1,i.isVisible?(i.scrollbar.addClass(o),n.scrollbar.addClass(o),a.addClass(o)):(i.scrollbar.removeClass(o),n.scrollbar.removeClass(o),a.removeClass(o)),"y"==e&&(i.isVisible||i.size =0;)d.scrolls.splice(t.inArray(s,d.scrolls),1)}else"string"!=typeof e&&(s=new u(n,e),n.data("scrollbar",s),d.scrolls.push(s));return!0}),o},t.fn.scrollbar.options=p,i.angular&&!function(t){var e=t.module("jQueryScrollbar",[]);e.directive("jqueryScrollbar",function(){return{link:function(t,e){e.scrollbar(t.options).on("$destroy",function(){e.scrollbar("destroy")})},restring:"AC",scope:{options:"=jqueryScrollbar"}}})}(i.angular);var f=0,m=0,g=function(t){var e,i,o,n,s,r,l;for(e=0;e 10?(d.log("Scroll updates exceed 10"),g=function(){}):(clearTimeout(f),f=setTimeout(g,300))}}(jQuery,document,window),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t,e){"use strict";t.infinitescroll=function(e,i,o){this.element=t(o),this._create(e,i)||(this.failed=!0)},t.infinitescroll.defaults={loading:{finished:e,finishedMsg:"Congratulations, you've reached the end of the internet.",img:"data:image/gif;base64,R0lGODlh3AATAPQeAPDy+MnQ6LW/4N3h8MzT6rjC4sTM5r/I5NHX7N7j8c7U6tvg8OLl8uXo9Ojr9b3G5MfP6Ovu9tPZ7PT1+vX2+tbb7vf4+8/W69jd7rC73vn5/O/x+K243ai02////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQECgD/ACwAAAAA3AATAAAF/6AnjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEj0BAScpHLJbDqf0Kh0Sq1ar9isdioItAKGw+MAKYMFhbF63CW438f0mg1R2O8EuXj/aOPtaHx7fn96goR4hmuId4qDdX95c4+RBIGCB4yAjpmQhZN0YGYGXitdZBIVGAsLoq4BBKQDswm1CQRkcG6ytrYKubq8vbfAcMK9v7q7EMO1ycrHvsW6zcTKsczNz8HZw9vG3cjTsMIYqQkCLBwHCgsMDQ4RDAYIqfYSFxDxEfz88/X38Onr16+Bp4ADCco7eC8hQYMAEe57yNCew4IVBU7EGNDiRn8Z831cGLHhSIgdFf9chIeBg7oA7gjaWUWTVQAGE3LqBDCTlc9WOHfm7PkTqNCh54rePDqB6M+lR536hCpUqs2gVZM+xbrTqtGoWqdy1emValeXKzggYBBB5y1acFNZmEvXAoN2cGfJrTv3bl69Ffj2xZt3L1+/fw3XRVw4sGDGcR0fJhxZsF3KtBTThZxZ8mLMgC3fRatCbYMNFCzwLEqLgE4NsDWs/tvqdezZf13Hvk2A9Szdu2X3pg18N+68xXn7rh1c+PLksI/Dhe6cuO3ow3NfV92bdArTqC2Ebd3A8vjf5QWfH6Bg7Nz17c2fj69+fnq+8N2Lty+fuP78/eV2X13neIcCeBRwxorbZrA1ANoCDGrgoG8RTshahQ9iSKEEzUmYIYfNWViUhheCGJyIP5E4oom7WWjgCeBFAJNv1DVV01MAdJhhjdkplWNzO/5oXI846njjVEIqR2OS2B1pE5PVscajkxhMycqLJghQSwT40PgfAl4GqNSXYdZXJn5gSkmmmmJu1aZYb14V51do+pTOCmA40AqVCIhG5IJ9PvYnhIFOxmdqhpaI6GeHCtpooisuutmg+Eg62KOMKuqoTaXgicQWoIYq6qiklmoqFV0UoeqqrLbq6quwxirrrLTWauutJ4QAACH5BAUKABwALAcABADOAAsAAAX/IPd0D2dyRCoUp/k8gpHOKtseR9yiSmGbuBykler9XLAhkbDavXTL5k2oqFqNOxzUZPU5YYZd1XsD72rZpBjbeh52mSNnMSC8lwblKZGwi+0QfIJ8CncnCoCDgoVnBHmKfByGJimPkIwtiAeBkH6ZHJaKmCeVnKKTHIihg5KNq4uoqmEtcRUtEREMBggtEr4QDrjCuRC8h7/BwxENeicSF8DKy82pyNLMOxzWygzFmdvD2L3P0dze4+Xh1Arkyepi7dfFvvTtLQkZBC0T/FX3CRgCMOBHsJ+EHYQY7OinAGECgQsB+Lu3AOK+CewcWjwxQeJBihtNGHSoQOE+iQ3//4XkwBBhRZMcUS6YSXOAwIL8PGqEaSJCiYt9SNoCmnJPAgUVLChdaoFBURN8MAzl2PQphwQLfDFd6lTowglHve6rKpbjhK7/pG5VinZP1qkiz1rl4+tr2LRwWU64cFEihwEtZgbgR1UiHaMVvxpOSwBA37kzGz9e8G+B5MIEKLutOGEsAH2ATQwYfTmuX8aETWdGPZmiZcccNSzeTCA1Sw0bdiitC7LBWgu8jQr8HRzqgpK6gX88QbrB14z/kF+ELpwB8eVQj/JkqdylAudji/+ts3039vEEfK8Vz2dlvxZKG0CmbkKDBvllRd6fCzDvBLKBDSCeffhRJEFebFk1k/Mv9jVIoIJZSeBggwUaNeB+Qk34IE0cXlihcfRxkOAJFFhwGmKlmWDiakZhUJtnLBpnWWcnKaAZcxI0piFGGLBm1mc90kajSCveeBVWKeYEoU2wqeaQi0PetoE+rr14EpVC7oAbAUHqhYExbn2XHHsVqbcVew9tx8+XJKk5AZsqqdlddGpqAKdbAYBn1pcczmSTdWvdmZ17c1b3FZ99vnTdCRFM8OEcAhLwm1NdXnWcBBSMRWmfkWZqVlsmLIiAp/o1gGV2vpS4lalGYsUOqXrddcKCmK61aZ8SjEpUpVFVoCpTj4r661Km7kBHjrDyc1RAIQAAIfkEBQoAGwAsBwAEAM4ACwAABf/gtmUCd4goQQgFKj6PYKi0yrrbc8i4ohQt12EHcal+MNSQiCP8gigdz7iCioaCIvUmZLp8QBzW0EN2vSlCuDtFKaq4RyHzQLEKZNdiQDhRDVooCwkbfm59EAmKi4SGIm+AjIsKjhsqB4mSjT2IOIOUnICeCaB/mZKFNTSRmqVpmJqklSqskq6PfYYCDwYHDC4REQwGCBLGxxIQDsHMwhAIX8bKzcENgSLGF9PU1j3Sy9zX2NrgzQziChLk1BHWxcjf7N046tvN82715czn9Pryz6Ilc4ACj4EBOCZM8KEnAYYADBRKnACAYUMFv1wotIhCEcaJCisqwJFgAUSQGyX/kCSVUUTIdKMwJlyo0oXHlhskwrTJciZHEXsgaqS4s6PJiCAr1uzYU8kBBSgnWFqpoMJMUjGtDmUwkmfVmVypakWhEKvXsS4nhLW5wNjVroJIoc05wSzTr0PtiigpYe4EC2vj4iWrFu5euWIMRBhacaVJhYQBEFjA9jHjyQ0xEABwGceGAZYjY0YBOrRLCxUp29QM+bRkx5s7ZyYgVbTqwwti2ybJ+vLtDYpycyZbYOlptxdx0kV+V7lC5iJAyyRrwYKxAdiz82ng0/jnAdMJFz0cPi104Ec1Vj9/M6F173vKL/feXv156dw11tlqeMMnv4V5Ap53GmjQQH97nFfg+IFiucfgRX5Z8KAgbUlQ4IULIlghhhdOSB6AgX0IVn8eReghen3NRIBsRgnH4l4LuEidZBjwRpt6NM5WGwoW0KSjCwX6yJSMab2GwwAPDXfaBCtWpluRTQqC5JM5oUZAjUNS+VeOLWpJEQ7VYQANW0INJSZVDFSnZphjSikfmzE5N4EEbQI1QJmnWXCmHulRp2edwDXF43txukenJwvI9xyg9Q26Z3MzGUcBYFEChZh6DVTq34AU8Iflh51Sd+CnKFYQ6mmZkhqfBKfSxZWqA9DZanWjxmhrWwi0qtCrt/43K6WqVjjpmhIqgEGvculaGKklKstAACEAACH5BAUKABwALAcABADOAAsAAAX/ICdyQmaMYyAUqPgIBiHPxNpy79kqRXH8wAPsRmDdXpAWgWdEIYm2llCHqjVHU+jjJkwqBTecwItShMXkEfNWSh8e1NGAcLgpDGlRgk7EJ/6Ae3VKfoF/fDuFhohVeDeCfXkcCQqDVQcQhn+VNDOYmpSWaoqBlUSfmowjEA+iEAEGDRGztAwGCDcXEA60tXEiCrq8vREMEBLIyRLCxMWSHMzExnbRvQ2Sy7vN0zvVtNfU2tLY3rPgLdnDvca4VQS/Cpk3ABwSLQkYAQwT/P309vcI7OvXr94jBQMJ/nskkGA/BQBRLNDncAIAiDcG6LsxAWOLiQzmeURBKWSLCQbv/1F0eDGinJUKR47YY1IEgQASKk7Yc7ACRwZm7mHweRJoz59BJUogisKCUaFMR0x4SlJBVBFTk8pZivTR0K73rN5wqlXEAq5Fy3IYgHbEzQ0nLy4QSoCjXLoom96VOJEeCosK5n4kkFfqXjl94wa+l1gvAcGICbewAOAxY8l/Ky/QhAGz4cUkGxu2HNozhwMGBnCUqUdBg9UuW9eUynqSwLHIBujePef1ZGQZXcM+OFuEBeBhi3OYgLyqcuaxbT9vLkf4SeqyWxSQpKGB2gQpm1KdWbu72rPRzR9Ne2Nu9Kzr/1Jqj0yD/fvqP4aXOt5sW/5qsXXVcv1Nsp8IBUAmgswGF3llGgeU1YVXXKTN1FlhWFXW3gIE+DVChApysACHHo7Q4A35lLichh+ROBmLKAzgYmYEYDAhCgxKGOOMn4WR4kkDaoBBOxJtdNKQxFmg5JIWIBnQc07GaORfUY4AEkdV6jHlCEISSZ5yTXpp1pbGZbkWmcuZmQCaE6iJ0FhjMaDjTMsgZaNEHFRAQVp3bqXnZED1qYcECOz5V6BhSWCoVJQIKuKQi2KFKEkEFAqoAo7uYSmO3jk61wUUMKmknJ4SGimBmAa0qVQBhAAAIfkEBQoAGwAsBwAEAM4ACwAABf/gJm5FmRlEqhJC+bywgK5pO4rHI0D3pii22+Mg6/0Ej96weCMAk7cDkXf7lZTTnrMl7eaYoy10JN0ZFdco0XAuvKI6qkgVFJXYNwjkIBcNBgR8TQoGfRsJCRuCYYQQiI+ICosiCoGOkIiKfSl8mJkHZ4U9kZMbKaI3pKGXmJKrngmug4WwkhA0lrCBWgYFCCMQFwoQDRHGxwwGCBLMzRLEx8iGzMMO0cYNeCMKzBDW19lnF9DXDIY/48Xg093f0Q3s1dcR8OLe8+Y91OTv5wrj7o7B+7VNQqABIoRVCMBggsOHE36kSoCBIcSH3EbFangxogJYFi8CkJhqQciLJEf/LDDJEeJIBT0GsOwYUYJGBS0fjpQAMidGmyVP6sx4Y6VQhzs9VUwkwqaCCh0tmKoFtSMDmBOf9phg4SrVrROuasRQAaxXpVUhdsU6IsECZlvX3kwLUWzRt0BHOLTbNlbZG3vZinArge5Dvn7wbqtQkSYAAgtKmnSsYKVKo2AfW048uaPmG386i4Q8EQMBAIAnfB7xBxBqvapJ9zX9WgRS2YMpnvYMGdPK3aMjt/3dUcNI4blpj7iwkMFWDXDvSmgAlijrt9RTR78+PS6z1uAJZIe93Q8g5zcsWCi/4Y+C8bah5zUv3vv89uft30QP23punGCx5954oBBwnwYaNCDY/wYrsYeggnM9B2Fpf8GG2CEUVWhbWAtGouEGDy7Y4IEJVrbSiXghqGKIo7z1IVcXIkKWWR361QOLWWnIhwERpLaaCCee5iMBGJQmJGyPFTnbkfHVZGRtIGrg5HALEJAZbu39BuUEUmq1JJQIPtZilY5hGeSWsSk52G9XqsmgljdIcABytq13HyIM6RcUA+r1qZ4EBF3WHWB29tBgAzRhEGhig8KmqKFv8SeCeo+mgsF7YFXa1qWSbkDpom/mqR1PmHCqJ3fwNRVXjC7S6CZhFVCQ2lWvZiirhQq42SACt25IK2hv8TprriUV1usGgeka7LFcNmCldMLi6qZMgFLgpw16Cipb7bC1knXsBiEAACH5BAUKABsALAcABADOAAsAAAX/4FZsJPkUmUGsLCEUTywXglFuSg7fW1xAvNWLF6sFFcPb42C8EZCj24EJdCp2yoegWsolS0Uu6fmamg8n8YYcLU2bXSiRaXMGvqV6/KAeJAh8VgZqCX+BexCFioWAYgqNi4qAR4ORhRuHY408jAeUhAmYYiuVlpiflqGZa5CWkzc5fKmbbhIpsAoQDRG8vQwQCBLCwxK6vb5qwhfGxxENahvCEA7NzskSy7vNzzzK09W/PNHF1NvX2dXcN8K55cfh69Luveol3vO8zwi4Yhj+AQwmCBw4IYclDAAJDlQggVOChAoLKkgFkSCAHDwWLKhIEOONARsDKryogFPIiAUb/95gJNIiw4wnI778GFPhzBKFOAq8qLJEhQpiNArjMcHCmlTCUDIouTKBhApELSxFWiGiVKY4E2CAekPgUphDu0742nRrVLJZnyrFSqKQ2ohoSYAMW6IoDpNJ4bLdILTnAj8KUF7UeENjAKuDyxIgOuGiOI0EBBMgLNew5AUrDTMGsFixwBIaNCQuAXJB57qNJ2OWm2Aj4skwCQCIyNkhhtMkdsIuodE0AN4LJDRgfLPtn5YDLdBlraAByuUbBgxQwICxMOnYpVOPej074OFdlfc0TqC62OIbcppHjV4o+LrieWhfT8JC/I/T6W8oCl29vQ0XjLdBaA3s1RcPBO7lFvpX8BVoG4O5jTXRQRDuJ6FDTzEWF1/BCZhgbyAKE9qICYLloQYOFtahVRsWYlZ4KQJHlwHS/IYaZ6sZd9tmu5HQm2xi1UaTbzxYwJk/wBF5g5EEYOBZeEfGZmNdFyFZmZIR4jikbLThlh5kUUVJGmRT7sekkziRWUIACABk3T4qCsedgO4xhgGcY7q5pHJ4klBBTQRJ0CeHcoYHHUh6wgfdn9uJdSdMiebGJ0zUPTcoS286FCkrZxnYoYYKWLkBowhQoBeaOlZAgVhLidrXqg2GiqpQpZ4apwSwRtjqrB3muoF9BboaXKmshlqWqsWiGt2wphJkQbAU5hoCACH5BAUKABsALAcABADOAAsAAAX/oGFw2WZuT5oZROsSQnGaKjRvilI893MItlNOJ5v5gDcFrHhKIWcEYu/xFEqNv6B1N62aclysF7fsZYe5aOx2yL5aAUGSaT1oTYMBwQ5VGCAJgYIJCnx1gIOBhXdwiIl7d0p2iYGQUAQBjoOFSQR/lIQHnZ+Ue6OagqYzSqSJi5eTpTxGcjcSChANEbu8DBAIEsHBChe5vL13G7fFuscRDcnKuM3H0La3EA7Oz8kKEsXazr7Cw9/Gztar5uHHvte47MjktznZ2w0G1+D3BgirAqJmJMAQgMGEgwgn5Ei0gKDBhBMALGRYEOJBb5QcWlQo4cbAihZz3GgIMqFEBSM1/4ZEOWPAgpIIJXYU+PIhRG8ja1qU6VHlzZknJNQ6UanCjQkWCIGSUGEjAwVLjc44+DTqUQtPPS5gejUrTa5TJ3g9sWCr1BNUWZI161StiQUDmLYdGfesibQ3XMq1OPYthrwuA2yU2LBs2cBHIypYQPPlYAKFD5cVvNPtW8eVGbdcQADATsiNO4cFAPkvHpedPzc8kUcPgNGgZ5RNDZG05reoE9s2vSEP79MEGiQGy1qP8LA4ZcdtsJE48ONoLTBtTV0B9LsTnPceoIDBDQvS7W7vfjVY3q3eZ4A339J4eaAmKqU/sV58HvJh2RcnIBsDUw0ABqhBA5aV5V9XUFGiHfVeAiWwoFgJJrIXRH1tEMiDFV4oHoAEGlaWhgIGSGBO2nFomYY3mKjVglidaNYJGJDkWW2xxTfbjCbVaOGNqoX2GloR8ZeTaECS9pthRGJH2g0b3Agbk6hNANtteHD2GJUucfajCQBy5OOTQ25ZgUPvaVVQmbKh9510/qQpwXx3SQdfk8tZJOd5b6JJFplT3ZnmmX3qd5l1eg5q00HrtUkUn0AKaiGjClSAgKLYZcgWXwocGRcCFGCKwSB6ceqphwmYRUFYT/1WKlOdUpipmxW0mlCqHjYkAaeoZlqrqZ4qd+upQKaapn/AmgAegZ8KUtYtFAQQAgAh+QQFCgAbACwHAAQAzgALAAAF/+C2PUcmiCiZGUTrEkKBis8jQEquKwU5HyXIbEPgyX7BYa5wTNmEMwWsSXsqFbEh8DYs9mrgGjdK6GkPY5GOeU6ryz7UFopSQEzygOGhJBjoIgMDBAcBM0V/CYqLCQqFOwobiYyKjn2TlI6GKC2YjJZknouaZAcQlJUHl6eooJwKooobqoewrJSEmyKdt59NhRKFMxLEEA4RyMkMEAjDEhfGycqAG8TQx9IRDRDE3d3R2ctD1RLg0ttKEnbY5wZD3+zJ6M7X2RHi9Oby7u/r9g38UFjTh2xZJBEBMDAboogAgwkQI07IMUORwocSJwCgWDFBAIwZOaJIsOBjRogKJP8wTODw5ESVHVtm3AhzpEeQElOuNDlTZ0ycEUWKWFASqEahGwYUPbnxoAgEdlYSqDBkgoUNClAlIHbSAoOsqCRQnQHxq1axVb06FWFxLIqyaze0Tft1JVqyE+pWXMD1pF6bYl3+HTqAWNW8cRUFzmih0ZAAB2oGKukSAAGGRHWJgLiR6AylBLpuHKKUMlMCngMpDSAa9QIUggZVVvDaJobLeC3XZpvgNgCmtPcuwP3WgmXSq4do0DC6o2/guzcseECtUoO0hmcsGKDgOt7ssBd07wqesAIGZC1YIBa7PQHvb1+SFo+++HrJSQfB33xfav3i5eX3Hnb4CTJgegEq8tH/YQEOcIJzbm2G2EoYRLgBXFpVmFYDcREV4HIcnmUhiGBRouEMJGJGzHIspqgdXxK0yCKHRNXoIX4uorCdTyjkyNtdPWrA4Up82EbAbzMRxxZRR54WXVLDIRmRcag5d2R6ugl3ZXzNhTecchpMhIGVAKAYpgJjjsSklBEd99maZoo535ZvdamjBEpusJyctg3h4X8XqodBMx0tiNeg/oGJaKGABpogS40KSqiaEgBqlQWLUtqoVQnytekEjzo0hHqhRorppOZt2p923M2AAV+oBtpAnnPNoB6HaU6mAAIU+IXmi3j2mtFXuUoHKwXpzVrsjcgGOauKEjQrwq157hitGq2NoWmjh7z6Wmxb0m5w66+2VRAuXN/yFUAIACH5BAUKABsALAcABADOAAsAAAX/4CZuRiaM45MZqBgIRbs9AqTcuFLE7VHLOh7KB5ERdjJaEaU4ClO/lgKWjKKcMiJQ8KgumcieVdQMD8cbBeuAkkC6LYLhOxoQ2PF5Ys9PKPBMen17f0CCg4VSh32JV4t8jSNqEIOEgJKPlkYBlJWRInKdiJdkmQlvKAsLBxdABA4RsbIMBggtEhcQsLKxDBC2TAS6vLENdJLDxMZAubu8vjIbzcQRtMzJz79S08oQEt/guNiyy7fcvMbh4OezdAvGrakLAQwyABsELQkY9BP+//ckyPDD4J9BfAMh1GsBoImMeQUN+lMgUJ9CiRMa5msxoB9Gh/o8GmxYMZXIgxtR/yQ46S/gQAURR0pDwYDfywoyLPip5AdnCwsMFPBU4BPFhKBDi444quCmDKZOfwZ9KEGpCKgcN1jdALSpPqIYsabS+nSqvqplvYqQYAeDPgwKwjaMtiDl0oaqUAyo+3TuWwUAMPpVCfee0cEjVBGQq2ABx7oTWmQk4FglZMGN9fGVDMCuiH2AOVOu/PmyxM630gwM0CCn6q8LjVJ8GXvpa5Uwn95OTC/nNxkda1/dLSK475IjCD6dHbK1ZOa4hXP9DXs5chJ00UpVm5xo2qRpoxptwF2E4/IbJpB/SDz9+q9b1aNfQH08+p4a8uvX8B53fLP+ycAfemjsRUBgp1H20K+BghHgVgt1GXZXZpZ5lt4ECjxYR4ScUWiShEtZqBiIInRGWnERNnjiBglw+JyGnxUmGowsyiiZg189lNtPGACjV2+S9UjbU0JWF6SPvEk3QZEqsZYTk3UAaRSUnznJI5LmESCdBVSyaOWUWLK4I5gDUYVeV1T9l+FZClCAUVA09uSmRHBCKAECFEhW51ht6rnmWBXkaR+NjuHpJ40D3DmnQXt2F+ihZxlqVKOfQRACACH5BAUKABwALAcABADOAAsAAAX/ICdyUCkUo/g8mUG8MCGkKgspeC6j6XEIEBpBUeCNfECaglBcOVfJFK7YQwZHQ6JRZBUqTrSuVEuD3nI45pYjFuWKvjjSkCoRaBUMWxkwBGgJCXspQ36Bh4EEB0oKhoiBgyNLjo8Ki4QElIiWfJqHnISNEI+Ql5J9o6SgkqKkgqYihamPkW6oNBgSfiMMDQkGCBLCwxIQDhHIyQwQCGMKxsnKVyPCF9DREQ3MxMPX0cu4wt7J2uHWx9jlKd3o39MiuefYEcvNkuLt5O8c1ePI2tyELXGQwoGDAQf+iEC2xByDCRAjTlAgIUWCBRgCPJQ4AQBFXAs0coT40WLIjRxL/47AcHLkxIomRXL0CHPERZkpa4q4iVKiyp0tR/7kwHMkTUBBJR5dOCEBAVcKKtCAyOHpowXCpk7goABqBZdcvWploACpBKkpIJI1q5OD2rIWE0R1uTZu1LFwbWL9OlKuWb4c6+o9i3dEgw0RCGDUG9KlRw56gDY2qmCByZBaASi+TACA0TucAaTteCcy0ZuOK3N2vJlx58+LRQyY3Xm0ZsgjZg+oPQLi7dUcNXi0LOJw1pgNtB7XG6CBy+U75SYfPTSQAgZTNUDnQHt67wnbZyvwLgKiMN3oCZB3C76tdewpLFgIP2C88rbi4Y+QT3+8S5USMICZXWj1pkEDeUU3lOYGB3alSoEiMIjgX4WlgNF2EibIwQIXauWXSRg2SAOHIU5IIIMoZkhhWiJaiFVbKo6AQEgQXrTAazO1JhkBrBG3Y2Y6EsUhaGn95hprSN0oWpFE7rhkeaQBchGOEWnwEmc0uKWZj0LeuNV3W4Y2lZHFlQCSRjTIl8uZ+kG5HU/3sRlnTG2ytyadytnD3HrmuRcSn+0h1dycexIK1KCjYaCnjCCVqOFFJTZ5GkUUjESWaUIKU2lgCmAKKQIUjHapXRKE+t2og1VgankNYnohqKJ2CmKplso6GKz7WYCgqxeuyoF8u9IQAgA7",msg:null,msgText:"Loading the next set of posts...",selector:null,speed:"fast",start:e},state:{isDuringAjax:!1,isInvalidPage:!1,isDestroyed:!1,isDone:!1,isPaused:!1,isBeyondMaxPage:!1,currPage:1},debug:!1,behavior:e,binder:t(window),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:!1,pathParse:e,dataType:"html",appendCallback:!0,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:e,path:e,prefill:!1,maxPage:e},t.infinitescroll.prototype={_binding:function(t){var i=this,o=i.options;return o.v="2.0b2.120520",o.behavior&&this["_binding_"+o.behavior]!==e?void this["_binding_"+o.behavior].call(this):"bind"!==t&&"unbind"!==t?(this._debug("Binding value "+t+" not valid"),!1):("unbind"===t?this.options.binder.unbind("smartscroll.infscr."+i.options.infid):this.options.binder[t]("smartscroll.infscr."+i.options.infid,function(){i.scroll()}),void this._debug("Binding",t))},_create:function(i,o){var n=t.extend(!0,{},t.infinitescroll.defaults,i);this.options=n;var s=t(window),r=this;if(!r._validate(i))return!1;var a=t(n.nextSelector).attr("href");if(!a)return this._debug("Navigation selector not found"),!1;n.path=n.path||this._determinepath(a),n.contentSelector=n.contentSelector||this.element,n.loading.selector=n.loading.selector||n.contentSelector,n.loading.msg=n.loading.msg||t(' "),(new Image).src=n.loading.img,n.pixelsFromNavToBottom===e&&(n.pixelsFromNavToBottom=t(document).height()-t(n.navSelector).offset().top,this._debug("pixelsFromNavToBottom: "+n.pixelsFromNavToBottom));var l=this;return n.loading.start=n.loading.start||function(){t(n.navSelector).hide(),n.loading.msg.appendTo(n.loading.selector).show(n.loading.speed,t.proxy(function(){this.beginAjax(n)},l))},n.loading.finished=n.loading.finished||function(){n.state.isBeyondMaxPage||n.loading.msg.fadeOut(n.loading.speed)},n.callback=function(i,r,a){n.behavior&&i["_callback_"+n.behavior]!==e&&i["_callback_"+n.behavior].call(t(n.contentSelector)[0],r,a),o&&o.call(t(n.contentSelector)[0],r,n,a),n.prefill&&s.bind("resize.infinite-scroll",i._prefill)},i.debug&&(!Function.prototype.bind||"object"!=typeof console&&"function"!=typeof console||"object"!=typeof console.log||["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(t){console[t]=this.call(console[t],console)},Function.prototype.bind)),this._setup(),n.prefill&&this._prefill(),!0},_prefill:function(){function e(){return t(i.options.contentSelector).height()<=o.height()}var i=this,o=t(window);this._prefill=function(){e()&&i.scroll(),o.bind("resize.infinite-scroll",function(){e()&&(o.unbind("resize.infinite-scroll"),i.scroll())})},this._prefill()},_debug:function(){!0===this.options.debug&&("undefined"!=typeof console&&"function"==typeof console.log?1===Array.prototype.slice.call(arguments).length&&"string"==typeof Array.prototype.slice.call(arguments)[0]:Function.prototype.bind||"undefined"==typeof console||"object"!=typeof console.log||Function.prototype.call.call(console.log,console,Array.prototype.slice.call(arguments)))},_determinepath:function(t){var i=this.options;if(i.behavior&&this["_determinepath_"+i.behavior]!==e)return this["_determinepath_"+i.behavior].call(this,t);if(i.pathParse)return this._debug("pathParse manual"),i.pathParse(t,this.options.state.currPage+1);if(t.match(/^(.*?)\b2\b(.*?$)/))t=t.match(/^(.*?)\b2\b(.*?$)/).slice(1);else if(t.match(/^(.*?)2(.*?$)/)){if(t.match(/^(.*?page=)2(\/.*|$)/))return t=t.match(/^(.*?page=)2(\/.*|$)/).slice(1);t=t.match(/^(.*?)2(.*?$)/).slice(1)}else{if(t.match(/^(.*?page=)1(\/.*|$)/))return t=t.match(/^(.*?page=)1(\/.*|$)/).slice(1);this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com."),i.state.isInvalidPage=!0}return this._debug("determinePath",t),t},_error:function(t){var i=this.options;return i.behavior&&this["_error_"+i.behavior]!==e?void this["_error_"+i.behavior].call(this,t):("destroy"!==t&&"end"!==t&&(t="unknown"),this._debug("Error",t),("end"===t||i.state.isBeyondMaxPage)&&this._showdonemsg(),i.state.isDone=!0,i.state.currPage=1,i.state.isPaused=!1,i.state.isBeyondMaxPage=!1,void this._binding("unbind"))},_loadcallback:function(i,o,n){var s,r=this.options,a=this.options.callback,l=r.state.isDone?"done":r.appendCallback?"append":"no-append";if(r.behavior&&this["_loadcallback_"+r.behavior]!==e)return void this["_loadcallback_"+r.behavior].call(this,i,o);switch(l){case"done":return this._showdonemsg(),!1;case"no-append":if("html"===r.dataType&&(o="'+n.loading.msgText+""+o+"",o=t(o).find(r.itemSelector)),0===o.length)return this._error("end");break;case"append":var h=i.children();if(0===h.length)return this._error("end");for(s=document.createDocumentFragment();i[0].firstChild;)s.appendChild(i[0].firstChild);this._debug("contentSelector",t(r.contentSelector)[0]),t(r.contentSelector)[0].appendChild(s),o=h.get()}if(r.loading.finished.call(t(r.contentSelector)[0],r),r.animate){var c=t(window).scrollTop()+t(r.loading.msg).height()+r.extraScrollPx+"px";t("html,body").animate({scrollTop:c},800,function(){r.state.isDuringAjax=!1})}r.animate||(r.state.isDuringAjax=!1),a(this,o,n),r.prefill&&this._prefill()},_nearbottom:function(){var i=this.options,o=0+t(document).height()-i.binder.scrollTop()-t(window).height();return i.behavior&&this["_nearbottom_"+i.behavior]!==e?this["_nearbottom_"+i.behavior].call(this):(this._debug("math:",o,i.pixelsFromNavToBottom),o-i.bufferPx-1&&0===t(e[i]).length)return this._debug("Your "+i+" found no elements."),!1;return!0},bind:function(){this._binding("bind")},destroy:function(){return this.options.state.isDestroyed=!0,this.options.loading.finished(),this._error("destroy")},pause:function(){this._pausing("pause")},resume:function(){this._pausing("resume")},beginAjax:function(i){var o,n,s,r,a=this,l=i.path;if(i.state.currPage++,i.maxPage!==e&&i.state.currPage>i.maxPage)return i.state.isBeyondMaxPage=!0,void this.destroy();switch(o=t(t(i.contentSelector).is("table, tbody")?"":""),n="function"==typeof l?l(i.state.currPage):l.join(i.state.currPage),a._debug("heading into ajax",n),s="html"===i.dataType||"json"===i.dataType?i.dataType:"html+callback",i.appendCallback&&"html"===i.dataType&&(s+="+callback"),s){case"html+callback":a._debug("Using HTML via .load() method"),o.load(n+" "+i.itemSelector,e,function(t){a._loadcallback(o,t,n)});break;case"html":a._debug("Using "+s.toUpperCase()+" via $.ajax() method"),t.ajax({url:n,dataType:i.dataType,complete:function(t,e){r="undefined"!=typeof t.isResolved?t.isResolved():"success"===e||"notmodified"===e,r?a._loadcallback(o,t.responseText,n):a._error("end")}});break;case"json":a._debug("Using "+s.toUpperCase()+" via $.ajax() method"),t.ajax({dataType:"json",type:"GET",url:n,success:function(t,s,l){if(r="undefined"!=typeof l.isResolved?l.isResolved():"success"===s||"notmodified"===s,i.appendCallback)if(i.template!==e){var h=i.template(t);o.append(h),r?a._loadcallback(o,h):a._error("end")}else a._debug("template must be defined."),a._error("end");else r?a._loadcallback(o,t,n):a._error("end")},error:function(){a._debug("JSON ajax request failed."),a._error("end")}})}},retrieve:function(i){i=i||null;var o=this,n=o.options;return n.behavior&&this["retrieve_"+n.behavior]!==e?void this["retrieve_"+n.behavior].call(this,i):n.state.isDestroyed?(this._debug("Instance is destroyed"),!1):(n.state.isDuringAjax=!0,void n.loading.start.call(t(n.contentSelector)[0],n))},scroll:function(){var t=this.options,i=t.state;return t.behavior&&this["scroll_"+t.behavior]!==e?void this["scroll_"+t.behavior].call(this):void(i.isDuringAjax||i.isInvalidPage||i.isDone||i.isDestroyed||i.isPaused||this._nearbottom()&&this.retrieve())},toggle:function(){this._pausing()},unbind:function(){this._binding("unbind")},update:function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))}},t.fn.infinitescroll=function(e,i){var o=typeof e;switch(o){case"string":var n=Array.prototype.slice.call(arguments,1);this.each(function(){var i=t.data(this,"infinitescroll");return i&&t.isFunction(i[e])&&"_"!==e.charAt(0)?void i[e].apply(i,n):!1});break;case"object":this.each(function(){var o=t.data(this,"infinitescroll");o?o.update(e):(o=new t.infinitescroll(e,i,this),o.failed||t.data(this,"infinitescroll",o))})}return this};var i,o=t.event;o.special.smartscroll={setup:function(){t(this).bind("scroll",o.special.smartscroll.handler)},teardown:function(){t(this).unbind("scroll",o.special.smartscroll.handler)},handler:function(e,o){var n=this,s=arguments;e.type="smartscroll",i&&clearTimeout(i),i=setTimeout(function(){t(n).trigger("smartscroll",s)},"execAsap"===o?0:100)}},t.fn.smartscroll=function(t){return t?this.bind("smartscroll",t):this.trigger("smartscroll",["execAsap"])}}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function l(t,e,o){var n,s="$()."+i+'("'+e+'")';return t.each(function(t,l){var h=a.data(l,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var c=h[e];if(!c||"_"==e.charAt(0))return void r(s+" is not a valid method");var d=c.apply(h,o);n=void 0===n?d:n}),void 0!==n?n:t}function h(t,e){t.each(function(t,o){var n=a.data(o,i);n?(n.option(e),n._init()):(n=new s(o,e),a.data(o,i,n))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=n.call(arguments,1);return l(this,t,e)}return h(this,t),this},o(a))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var n=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return o(e||t.jQuery),i}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;h>e;e++){var i=l[e];t[i]=0}return t}function o(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function n(){if(!c){c=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var n=o(e);s.isBoxSizeOuter=r=200==t(n.width),i.removeChild(e)}}function s(e){if(n(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var s=o(e);if("none"==s.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var c=a.isBorderBox="border-box"==s.boxSizing,d=0;h>d;d++){var p=l[d],u=s[p],f=parseFloat(u);a[p]=isNaN(f)?0:f}var m=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,v=a.marginLeft+a.marginRight,y=a.marginTop+a.marginBottom,w=a.borderLeftWidth+a.borderRightWidth,b=a.borderTopWidth+a.borderBottomWidth,x=c&&r,z=t(s.width);z!==!1&&(a.width=z+(x?0:m+w));var C=t(s.height);return C!==!1&&(a.height=C+(x?0:g+b)),a.innerWidth=a.width-(m+w),a.innerHeight=a.height-(g+b),a.outerWidth=a.width+v,a.outerHeight=a.height+y,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],h=l.length,c=!1;return s}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}(this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return-1==o.indexOf(e)&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},o=i[t]=i[t]||{};return o[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return-1!=o&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=0,n=i[o];e=e||[];for(var s=this._onceEvents&&this._onceEvents[t];n;){var r=s&&s[n];r&&(this.off(t,n),delete s[n]),n.apply(this,e),o+=r?0:1,n=i[o]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i =t.x+e&&this.y+this.height>=t.y+i},e.overlaps=function(t){var e=this.x+this.width,i=this.y+this.height,o=t.x+t.width,n=t.y+t.height;return this.x t.x&&this.y t.y},e.getMaximalFreeRects=function(e){if(!this.overlaps(e))return!1;var i,o=[],n=this.x+this.width,s=this.y+this.height,r=e.x+e.width,a=e.y+e.height;return this.y r&&(i=new t({x:r,y:this.y,width:n-r,height:this.height}),o.push(i)),s>a&&(i=new t({x:this.x,y:a,width:this.width,height:s-a}),o.push(i)),this.x =t.width&&this.height>=t.height},t}),function(t,e){if("function"==typeof define&&define.amd)define("packery/js/packer",["./rect"],e);else if("object"==typeof module&&module.exports)module.exports=e(require("./rect"));else{var i=t.Packery=t.Packery||{};i.Packer=e(i.Rect)}}(window,function(t){"use strict";function e(t,e,i){this.width=t||0,this.height=e||0,this.sortDirection=i||"downwardLeftToRight",this.reset()}var i=e.prototype;i.reset=function(){this.spaces=[];var e=new t({x:0,y:0,width:this.width,height:this.height});this.spaces.push(e),this.sorter=o[this.sortDirection]||o.downwardLeftToRight},i.pack=function(t){for(var e=0;e =t.x+t.width&&i.height>=t.height-.01;if(o){t.y=i.y,this.placed(t);break}}},i.rowPack=function(t){for(var e=0;e =t.y+t.height&&i.width>=t.width-.01;if(o){t.x=i.x,this.placed(t);break}}},i.placeInSpace=function(t,e){t.x=e.x,t.y=e.y,this.placed(t)},i.placed=function(t){for(var e=[],i=0;i i&&1>o;return n?void this.goTo(t,e):void a.apply(this,arguments)},s.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&o&&(this.element.style[o]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},s.disablePlacing=function(){this.isPlacing=!1},s.removeElem=function(){this.element.parentNode.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},s.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||(t=this.dropPlaceholder=document.createElement("div"),t.className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},s.positionDropPlaceholder=function(){this.dropPlaceholder.style[o]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},s.hideDropPlaceholder=function(){var t=this.dropPlaceholder.parentNode;t&&t.removeChild(this.dropPlaceholder)},n}),function(t,e){"function"==typeof define&&define.amd?define(["get-size/get-size","outlayer/outlayer","packery/js/rect","packery/js/packer","packery/js/item"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):t.Packery=e(t.getSize,t.Outlayer,t.Packery.Rect,t.Packery.Packer,t.Packery.Item)}(window,function(t,e,i,o,n){"use strict";function s(t,e){return t.position.y-e.position.y||t.position.x-e.position.x}function r(t,e){return t.position.x-e.position.x||t.position.y-e.position.y}function a(t,e){var i=e.x-t.x,o=e.y-t.y;return Math.sqrt(i*i+o*o)}i.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var l=e.create("packery");l.Item=n;var h=l.prototype;h._create=function(){e.prototype._create.call(this),this.packer=new o,this.shiftPacker=new o,this.isEnabled=!0,this.dragItemCount=0;var t=this;this.handleDraggabilly={dragStart:function(){t.itemDragStart(this.element)},dragMove:function(){t.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){t.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(e,i){i&&t.itemDragStart(e.currentTarget)},drag:function(e,i){i&&t.itemDragMove(e.currentTarget,i.position.left,i.position.top)},stop:function(e,i){i&&t.itemDragEnd(e.currentTarget)}}},h._resetLayout=function(){this.getSize(),this._getMeasurements();var t,e,i;this._getOption("horizontal")?(t=1/0,e=this.size.innerHeight+this.gutter,i="rightwardTopToBottom"):(t=this.size.innerWidth+this.gutter,e=1/0,i="downwardLeftToRight"),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=e,this.packer.sortDirection=this.shiftPacker.sortDirection=i,this.packer.reset(),this.maxY=0,this.maxX=0},h._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},h._getItemLayoutPosition=function(t){if(this._setRectSize(t.element,t.rect),this.isShifting||this.dragItemCount>0){var e=this._getPackMethod();this.packer[e](t.rect)}else this.packer.pack(t.rect);return this._setMaxXY(t.rect),t.rect},h.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},h._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},h._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},h._setRectSize=function(e,i){var o=t(e),n=o.outerWidth,s=o.outerHeight;(n||s)&&(n=this._applyGridGutter(n,this.columnWidth),s=this._applyGridGutter(s,this.rowHeight)),i.width=Math.min(n,this.packer.width),i.height=Math.min(s,this.packer.height)},h._applyGridGutter=function(t,e){if(!e)return t+this.gutter;e+=this.gutter;var i=t%e,o=i&&1>i?"round":"ceil";return t=Math[o](t/e)*e},h._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},h._manageStamp=function(t){var e,o=this.getItem(t);if(o&&o.isPlacing)e=o.rect;else{var n=this._getElementOffset(t);e=new i({x:this._getOption("originLeft")?n.left:n.right,y:this._getOption("originTop")?n.top:n.bottom})}this._setRectSize(t,e),this.packer.placed(e),this._setMaxXY(e)},h.sortItemsByPosition=function(){var t=this._getOption("horizontal")?r:s;this.items.sort(t)},h.fit=function(t,e,i){var o=this.getItem(t);o&&(this.stamp(o.element),o.enablePlacing(),this.updateShiftTargets(o),e=void 0===e?o.rect.x:e,i=void 0===i?o.rect.y:i,this.shift(o,e,i),this._bindFitEvents(o),o.moveTo(o.rect.x,o.rect.y),this.shiftLayout(),this.unstamp(o.element),this.sortItemsByPosition(),o.disablePlacing())},h._bindFitEvents=function(t){function e(){o++,2==o&&i.dispatchEvent("fitComplete",null,[t])}var i=this,o=0;t.once("layout",e),this.once("layoutComplete",e)},h.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},h.needsResizeLayout=function(){var e=t(this.element),i=this._getOption("horizontal")?"innerHeight":"innerWidth";return e[i]!=this.size[i]},h.resizeShiftPercentLayout=function(){var e=this._getItemsForLayout(this.items),i=this._getOption("horizontal"),o=i?"y":"x",n=i?"height":"width",s=i?"rowHeight":"columnWidth",r=i?"innerHeight":"innerWidth",a=this[s];if(a=a&&a+this.gutter){this._getMeasurements();var l=this[s]+this.gutter;e.forEach(function(t){var e=Math.round(t.rect[o]/a);t.rect[o]=e*l})}else{var h=t(this.element)[r]+this.gutter,c=this.packer[n];e.forEach(function(t){t.rect[o]=t.rect[o]/c*h})}this.shiftLayout()},h.itemDragStart=function(t){if(this.isEnabled){this.stamp(t);var e=this.getItem(t);e&&(e.enablePlacing(),e.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(e))}},h.updateShiftTargets=function(t){this.shiftPacker.reset(),this._getBoundingRect();var e=this._getOption("originLeft"),o=this._getOption("originTop");this.stamps.forEach(function(t){var n=this.getItem(t);if(!n||!n.isPlacing){var s=this._getElementOffset(t),r=new i({x:e?s.left:s.right,y:o?s.top:s.bottom});this._setRectSize(t,r),this.shiftPacker.placed(r)}},this);var n=this._getOption("horizontal"),s=n?"rowHeight":"columnWidth",r=n?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var a,l=this[s];if(l=l&&l+this.gutter){var h=Math.ceil(t.rect[r]/l),c=Math.floor((this.shiftPacker[r]+this.gutter)/l);a=(c-h)*l;for(var d=0;c>d;d++){var p=n?0:d*l,u=n?d*l:0;this._addShiftTarget(p,u,a)}}else a=this.shiftPacker[r]+this.gutter-t.rect[r],this._addShiftTarget(0,0,a);var f=this._getItemsForLayout(this.items),m=this._getPackMethod();f.forEach(function(t){var e=t.rect;this._setRectSize(t.element,e),this.shiftPacker[m](e),this._addShiftTarget(e.x,e.y,a);var i=n?e.x+e.width:e.x,o=n?e.y:e.y+e.height;if(this._addShiftTarget(i,o,a),l)for(var s=Math.round(e[r]/l),h=1;s>h;h++){var c=n?i:e.x+l*h,d=n?e.y+l*h:o;this._addShiftTarget(c,d,a)}},this)},h._addShiftTarget=function(t,e,i){var o=this._getOption("horizontal")?e:t;if(!(0!==o&&o>i)){var n=t+","+e,s=-1!=this.shiftTargetKeys.indexOf(n);s||(this.shiftTargetKeys.push(n),this.shiftTargets.push({x:t,y:e}))}},h.shift=function(t,e,i){var o,n=1/0,s={x:e,y:i};this.shiftTargets.forEach(function(t){var e=a(t,s);n>e&&(o=t,n=e)}),t.rect.x=o.x,t.rect.y=o.y};var c=120;h.itemDragMove=function(t,e,i){function o(){s.shift(n,e,i),n.positionDropPlaceholder(),s.layout()}var n=this.isEnabled&&this.getItem(t);if(n){e-=this.size.paddingLeft,i-=this.size.paddingTop;var s=this,r=new Date;this._itemDragTime&&r-this._itemDragTime e;e++){var i=l[e];t[i]=0}return t}function o(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function n(){if(!c){c=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var n=o(e);s.isBoxSizeOuter=r=200==t(n.width),i.removeChild(e)}}function s(e){if(n(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var s=o(e);if("none"==s.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var c=a.isBorderBox="border-box"==s.boxSizing,d=0;h>d;d++){var p=l[d],u=s[p],f=parseFloat(u);a[p]=isNaN(f)?0:f}var m=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,v=a.marginLeft+a.marginRight,y=a.marginTop+a.marginBottom,w=a.borderLeftWidth+a.borderRightWidth,b=a.borderTopWidth+a.borderBottomWidth,x=c&&r,z=t(s.width);z!==!1&&(a.width=z+(x?0:m+w));var C=t(s.height);return C!==!1&&(a.height=C+(x?0:g+b)),a.innerWidth=a.width-(m+w),a.innerHeight=a.height-(g+b),a.outerWidth=a.width+v,a.outerHeight=a.height+y,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],h=l.length,c=!1;return s}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i r?"round":"floor";s=Math[a](s),this.cols=Math.max(s,1)},i.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,o=e(i);this.containerWidth=o&&o.innerWidth},i.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",o=Math[i](t.size.outerWidth/this.columnWidth);o=Math.min(o,this.cols);for(var n=this._getColGroup(o),s=Math.min.apply(Math,n),r=n.indexOf(s),a={x:this.columnWidth*r,y:s},l=s+t.size.outerHeight,h=this.cols+1-n.length,c=0;h>c;c++)this.colYs[r+c]=l;return a},i.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;i>o;o++){var n=this.colYs.slice(o,o+t);e[o]=Math.max.apply(Math,n)}return e},i.prototype._manageStamp=function(t){var i=e(t),o=this._getElementOffset(t),n=this._getOption("originLeft"),s=n?o.left:o.right,r=s+i.outerWidth,a=Math.floor(s/this.columnWidth);a=Math.max(0,a);var l=Math.floor(r/this.columnWidth);l-=r%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var h=this._getOption("originTop"),c=(h?o.top:o.bottom)+i.outerHeight,d=a;l>=d;d++)this.colYs[d]=Math.max(c,this.colYs[d])},i.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},i.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},i.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),o=i.prototype,n={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var s in e.prototype)n[s]||(o[s]=e.prototype[s]);var r=o.measureColumns;o.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=o._getOption;return o._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var o={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,o},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(i,o,n,s,r,a){return e(t,i,o,n,s,r,a)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope/js/item"),require("isotope/js/layout-mode"),require("isotope/js/layout-modes/masonry"),require("isotope/js/layout-modes/fit-rows"),require("isotope/js/layout-modes/vertical")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,i,o,n,s,r){function a(t,e){return function(i,o){for(var n=0;n a||a>r){var l=void 0!==e[s]?e[s]:e,h=l?1:-1;return(r>a?1:-1)*h}}return 0}}var l=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},c=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});c.Item=s,c.LayoutMode=r;var d=c.prototype;d._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in r.modes)this._initLayoutMode(t)},d.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},d._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i i;i++){var o=t[i];o.updateSortData()}};var p=function(){function t(t){if("string"!=typeof t)return t;var i=h(t).split(" "),o=i[0],n=o.match(/^\[(.+)\]$/),s=n&&n[1],r=e(s,o),a=c.sortDataParsers[i[1]];return t=a?function(t){return t&&a(r(t))}:function(t){return t&&r(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();c.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},d._sort=function(){var t=this.options.sortBy;if(t){var e=[].concat.apply(t,this.sortHistory),i=a(e,this.options.sortAscending);this.filteredItems.sort(i),t!=this.sortHistory[0]&&this.sortHistory.unshift(t)}},d._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},d._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},d._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},d._manageStamp=function(t){this._mode()._manageStamp(t)},d._getContainerSize=function(){return this._mode()._getContainerSize()},d.needsResizeLayout=function(){return this._mode().needsResizeLayout()},d.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},d.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},d._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},d.insert=function(t){var e=this.addItems(t);if(e.length){var i,o,n=e.length;for(i=0;n>i;i++)o=e[i],this.element.appendChild(o.element);var s=this._filter(e).matches;for(i=0;n>i;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;n>i;i++)delete e[i].isLayoutInstant;this.reveal(s)}};var u=d.remove;return d.remove=function(t){t=n.makeArray(t);var e=this.getItems(t);u.call(this,t);for(var i=e&&e.length,o=0;i&&i>o;o++){var s=e[o];n.removeFrom(this.filteredItems,s)}},d.shuffle=function(){for(var t=0;t =e&&e+d+h>=a&&r+p+l>=t&&t+u+l>=r?i.appeared||i.trigger("appear",o.data):i.appeared=!1},r=function(){if(i.appeared=!0,o.one){n.unbind("scroll",s);var r=t.inArray(s,t.fn.appear.checks);r>=0&&t.fn.appear.checks.splice(r,1)}e.apply(this,arguments)};o.one?i.one("appear",o.data,r):i.bind("appear",o.data,r),n.scroll(s),t.fn.appear.checks.push(s),s()})},t.extend(t.fn.appear,{checks:[],timeout:null,checkAll:function(){var e=t.fn.appear.checks.length;if(e>0)for(;e--;)"function"==typeof t.fn.appear.checks[e]&&t.fn.appear.checks[e]()},run:function(){t.fn.appear.timeout&&clearTimeout(t.fn.appear.timeout),t.fn.appear.timeout=setTimeout(t.fn.appear.checkAll,20)}}),t.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(e,i){var o=t.fn[i];o&&(t.fn[i]=function(){var e=o.apply(this,arguments);return t.fn.appear.run(),e})})}(jQuery),function(t,e){"object"==typeof exports?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(t.jQuery)}(this,function(t){var e=function(t,e){var i,o=document.createElement("canvas");t.appendChild(o),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(o);var n=o.getContext("2d");o.width=o.height=e.size;var s=1;window.devicePixelRatio>1&&(s=window.devicePixelRatio,o.style.width=o.style.height=[e.size,"px"].join(""),o.width=o.height=e.size*s,n.scale(s,s)),n.translate(e.size/2,e.size/2),n.rotate((-0.5+e.rotate/180)*Math.PI);var r=(e.size-e.lineWidth)/2;e.scaleColor&&e.scaleLength&&(r-=e.scaleLength+2),Date.now=Date.now||function(){return+new Date};var a=function(t,e,i){i=Math.min(Math.max(-1,i||0),1);var o=0>=i?!0:!1;n.beginPath(),n.arc(0,0,r,0,2*Math.PI*i,o),n.strokeStyle=t,n.lineWidth=e,n.stroke()},l=function(){var t,i;n.lineWidth=1,n.fillStyle=e.scaleColor,n.save();for(var o=24;o>0;--o)o%6===0?(i=e.scaleLength,t=0):(i=.6*e.scaleLength,t=e.scaleLength-i),n.fillRect(-e.size/2+t,0,i,1),n.rotate(Math.PI/12); n.restore()},h=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}(),c=function(){e.scaleColor&&l(),e.trackColor&&a(e.trackColor,e.lineWidth,1)};this.getCanvas=function(){return o},this.getCtx=function(){return n},this.clear=function(){n.clearRect(e.size/-2,e.size/-2,e.size,e.size)},this.draw=function(t){e.scaleColor||e.trackColor?n.getImageData&&n.putImageData?i?n.putImageData(i,0,0):(c(),i=n.getImageData(0,0,e.size*s,e.size*s)):(this.clear(),c()):this.clear(),n.lineCap=e.lineCap;var o;o="function"==typeof e.barColor?e.barColor(t):e.barColor,a(o,e.lineWidth,t/100)}.bind(this),this.animate=function(t,i){var o=Date.now();e.onStart(t,i);var n=function(){var s=Math.min(Date.now()-o,e.animate.duration),r=e.easing(this,s,t,i-t,e.animate.duration);this.draw(r),e.onStep(t,i,r),s>=e.animate.duration?e.onStop(t,i):h(n)}.bind(this);h(n)}.bind(this)},i=function(t,i){var o={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(t,e,i,o,n){return e/=n/2,1>e?o/2*e*e+i:-o/2*(--e*(e-2)-1)+i},onStart:function(){},onStep:function(){},onStop:function(){}};if("undefined"!=typeof e)o.renderer=e;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");o.renderer=SVGRenderer}var n={},s=0,r=function(){this.el=t,this.options=n;for(var e in o)o.hasOwnProperty(e)&&(n[e]=i&&"undefined"!=typeof i[e]?i[e]:o[e],"function"==typeof n[e]&&(n[e]=n[e].bind(this)));n.easing="string"==typeof n.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[n.easing])?jQuery.easing[n.easing]:o.easing,"number"==typeof n.animate&&(n.animate={duration:n.animate,enabled:!0}),"boolean"!=typeof n.animate||n.animate||(n.animate={duration:1e3,enabled:n.animate}),this.renderer=new n.renderer(t,n),this.renderer.draw(s),t.dataset&&t.dataset.percent?this.update(parseFloat(t.dataset.percent)):t.getAttribute&&t.getAttribute("data-percent")&&this.update(parseFloat(t.getAttribute("data-percent")))}.bind(this);this.update=function(t){return t=parseFloat(t),n.animate.enabled?this.renderer.animate(s,t):this.renderer.draw(t),s=t,this}.bind(this),this.disableAnimation=function(){return n.animate.enabled=!1,this},this.enableAnimation=function(){return n.animate.enabled=!0,this},r()};t.fn.easyPieChart=function(e){return this.each(function(){var o;t.data(this,"easyPieChart")||(o=t.extend({},e,t(this).data()),t.data(this,"easyPieChart",new i(this,o)))})}}),function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null};if(!document.getElementById("fit-vids-style")){var o=document.head||document.getElementsByTagName("head")[0],n=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",s=document.createElement("div");s.innerHTML=' x
",o.appendChild(s.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];i.customSelector&&e.push(i.customSelector);var o=t(this).find(e.join(","));o=o.not("object object"),o.each(function(){var e=t(this);if(!("embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){var i="object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height(),o=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10),n=i/o;if(!e.attr("id")){var s="fitvid"+Math.floor(999999*Math.random());e.attr("id",s)}e.wrap('').parent(".fluid-width-video-wrapper").css("padding-top",100*n+"%"),e.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),function(t){var e={init:function(e,i){var o=this;o.elem=i,o.$elem=t(i),o.imageSrc=o.$elem.data("zoom-image")?o.$elem.data("zoom-image"):o.$elem.attr("src"),o.options=t.extend({},t.fn.elevateZoom.options,e),o.options.tint&&(o.options.lensColour="none",o.options.lensOpacity="1"),"inner"==o.options.zoomType&&(o.options.showLens=!1),o.$container=t(o.options.zoomContainer?o.options.zoomContainer:"body"),o.$elem.parent().removeAttr("title").removeAttr("alt"),o.zoomImage=o.imageSrc,o.refresh(1),t("#"+o.options.gallery+" a").click(function(e){return o.options.galleryActiveClass&&(t("#"+o.options.gallery+" a").removeClass(o.options.galleryActiveClass),t(this).addClass(o.options.galleryActiveClass)),e.preventDefault(),o.zoomImagePre=t(this).data(t(this).data("zoom-image")?"zoom-image":"image"),o.swaptheimage(t(this).data("image"),o.zoomImagePre),!1})},refresh:function(t){var e=this;setTimeout(function(){e.fetch(e.imageSrc)},t||e.options.refresh)},fetch:function(t){var e=this,i=new Image;i.onload=function(){e.largeWidth=i.width,e.largeHeight=i.height,e.startZoom(),e.currentImage=e.imageSrc,e.options.onZoomedImageLoaded(e.$elem)},i.src=t},startZoom:function(){var e=this;if(e.nzWidth=e.$elem.width(),e.nzHeight=e.$elem.height(),e.isWindowActive=!1,e.isLensActive=!1,e.isTintActive=!1,e.overWindow=!1,e.options.imageCrossfade&&(e.zoomWrap=e.$elem.wrap(''),e.$elem.css("position","absolute")),e.zoomLock=1,e.scrollingLock=!1,e.changeBgSize=!1,e.currentZoomLevel=e.options.zoomLevel,e.nzOffset=e.$elem.offset(),e.ctOffset=e.$container.offset(),e.widthRatio=e.largeWidth/e.currentZoomLevel/e.nzWidth,e.heightRatio=e.largeHeight/e.currentZoomLevel/e.nzHeight,"window"==e.options.zoomType&&(e.zoomWindowStyle="overflow: hidden;background-position: 0px 0px;text-align:center;background-color: "+String(e.options.zoomWindowBgColour)+";width: "+String(e.options.zoomWindowWidth)+"px;height: "+String(e.options.zoomWindowHeight)+"px;float: left;background-size: "+e.largeWidth/e.currentZoomLevel+"px "+e.largeHeight/e.currentZoomLevel+"px;display: none;z-index:100;border: "+String(e.options.borderSize)+"px solid "+e.options.borderColour+";background-repeat: no-repeat;position: absolute;"),"inner"==e.options.zoomType){{e.$elem.css("border-left-width")}e.zoomWindowStyle="overflow: hidden;margin-left: -"+String(e.options.borderSize)+"px;margin-top: -"+String(e.options.borderSize)+"px;background-position: 0px 0px;width: "+String(e.nzWidth)+"px;height: "+String(e.nzHeight)+"px;float: left;display: none;cursor:"+e.options.cursor+";border: "+String(e.options.borderSize)+"px solid "+e.options.borderColour+";background-repeat: no-repeat;position: absolute;"}"window"==e.options.zoomType&&(lensHeight=e.nzHeight").appendTo(e.zoomContainer).click(function(){e.$elem.trigger("click")}),e.options.tint&&(e.tintContainer=t("").addClass("tintContainer"),e.zoomTint=t(""),e.zoomLens.wrap(e.tintContainer),e.zoomTintcss=e.zoomLens.after(e.zoomTint),e.zoomTintImage=t('').appendTo(e.zoomLens).click(function(){e.$elem.trigger("click")}))),e.zoomWindow=isNaN(e.options.zoomWindowPosition)?t("").appendTo(e.$container).click(function(){e.$elem.trigger("click")}):t("").appendTo(e.zoomContainer).click(function(){e.$elem.trigger("click")}),e.zoomWindowContainer=t("").addClass("zoomWindowContainer").css("width",e.options.zoomWindowWidth),e.zoomWindow.wrap(e.zoomWindowContainer),"lens"==e.options.zoomType&&e.zoomLens.css({backgroundImage:"url('"+e.imageSrc+"')"}),"window"==e.options.zoomType&&e.zoomWindow.css({backgroundImage:"url('"+e.imageSrc+"')"}),"inner"==e.options.zoomType&&e.zoomWindow.css({backgroundImage:"url('"+e.imageSrc+"')"}),e.$elem.bind("touchmove",function(t){t.preventDefault();var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0];e.setPosition(i)}),e.zoomContainer.bind("touchmove",function(t){"inner"==e.options.zoomType&&e.showHideWindow("show"),t.preventDefault();var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0];e.setPosition(i)}),e.zoomContainer.bind("touchend",function(){e.showHideWindow("hide"),e.options.showLens&&e.showHideLens("hide"),e.options.tint&&"inner"!=e.options.zoomType&&e.showHideTint("hide")}),e.$elem.bind("touchend",function(){e.showHideWindow("hide"),e.options.showLens&&e.showHideLens("hide"),e.options.tint&&"inner"!=e.options.zoomType&&e.showHideTint("hide")}),e.options.showLens&&(e.zoomLens.bind("touchmove",function(t){t.preventDefault();var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0];e.setPosition(i)}),e.zoomLens.bind("touchend",function(){e.showHideWindow("hide"),e.options.showLens&&e.showHideLens("hide"),e.options.tint&&"inner"!=e.options.zoomType&&e.showHideTint("hide")})),e.$elem.bind("mousemove",function(t){0==e.overWindow&&e.setElements("show"),(e.lastX!==t.clientX||e.lastY!==t.clientY)&&(e.setPosition(t),e.currentLoc=t),e.lastX=t.clientX,e.lastY=t.clientY}),e.zoomContainer.bind("mousemove",function(t){0==e.overWindow&&e.setElements("show"),(e.lastX!==t.clientX||e.lastY!==t.clientY)&&(e.setPosition(t),e.currentLoc=t),e.lastX=t.clientX,e.lastY=t.clientY}),"inner"!=e.options.zoomType&&e.zoomLens.bind("mousemove",function(t){(e.lastX!==t.clientX||e.lastY!==t.clientY)&&(e.setPosition(t),e.currentLoc=t),e.lastX=t.clientX,e.lastY=t.clientY}),e.options.tint&&"inner"!=e.options.zoomType&&e.zoomTint.bind("mousemove",function(t){(e.lastX!==t.clientX||e.lastY!==t.clientY)&&(e.setPosition(t),e.currentLoc=t),e.lastX=t.clientX,e.lastY=t.clientY}),"inner"==e.options.zoomType&&e.zoomWindow.bind("mousemove",function(t){(e.lastX!==t.clientX||e.lastY!==t.clientY)&&(e.setPosition(t),e.currentLoc=t),e.lastX=t.clientX,e.lastY=t.clientY}),e.zoomContainer.add(e.$elem).mouseenter(function(){0==e.overWindow&&e.setElements("show")}).mouseleave(function(){e.scrollLock||e.setElements("hide")}),"inner"!=e.options.zoomType&&e.zoomWindow.mouseenter(function(){e.overWindow=!0,e.setElements("hide")}).mouseleave(function(){e.overWindow=!1}),1!=e.options.zoomLevel,e.minZoomLevel=e.options.minZoomLevel?e.options.minZoomLevel:2*e.options.scrollZoomIncrement,e.options.scrollZoom&&e.zoomContainer.add(e.$elem).bind("mousewheel DOMMouseScroll MozMousePixelScroll",function(i){e.scrollLock=!0,clearTimeout(t.data(this,"timer")),t.data(this,"timer",setTimeout(function(){e.scrollLock=!1},250));var o=i.originalEvent.wheelDelta||-1*i.originalEvent.detail;return i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault(),o/120>0?e.currentZoomLevel>=e.minZoomLevel&&e.changeZoomLevel(e.currentZoomLevel-e.options.scrollZoomIncrement):e.options.maxZoomLevel?e.currentZoomLevel<=e.options.maxZoomLevel&&e.changeZoomLevel(parseFloat(e.currentZoomLevel)+e.options.scrollZoomIncrement):e.changeZoomLevel(parseFloat(e.currentZoomLevel)+e.options.scrollZoomIncrement),!1}))},setElements:function(t){var e=this;return e.options.zoomEnabled?("show"==t&&e.isWindowSet&&("inner"==e.options.zoomType&&e.showHideWindow("show"),"window"==e.options.zoomType&&e.showHideWindow("show"),e.options.showLens&&e.showHideLens("show"),e.options.tint&&"inner"!=e.options.zoomType&&e.showHideTint("show")),void("hide"==t&&("window"==e.options.zoomType&&e.showHideWindow("hide"),e.options.tint||e.showHideWindow("hide"),e.options.showLens&&e.showHideLens("hide"),e.options.tint&&e.showHideTint("hide")))):!1},setPosition:function(t){var e=this;return e.options.zoomEnabled?(e.nzHeight=e.$elem.height(),e.nzWidth=e.$elem.width(),e.nzOffset=e.$elem.offset(),e.ctOffset=e.$container.offset(),e.options.tint&&"inner"!=e.options.zoomType&&(e.zoomTint.css({top:0}),e.zoomTint.css({left:0})),e.options.responsive&&!e.options.scrollZoom&&e.options.showLens&&(lensHeight=e.nzHeighte.nzHeight-e.zoomLens.height()/2-2*e.options.lensBorderSize,e.Eloppos=e.mouseLeft<0+e.zoomLens.width()/2,e.Eroppos=e.mouseLeft>e.nzWidth-e.zoomLens.width()/2-2*e.options.lensBorderSize),"inner"==e.options.zoomType&&(e.Etoppos=e.mouseTop e.nzHeight-e.nzHeight/2/e.heightRatio,e.Eloppos=e.mouseLeft<0+e.nzWidth/2/e.widthRatio,e.Eroppos=e.mouseLeft>e.nzWidth-e.nzWidth/2/e.widthRatio-2*e.options.lensBorderSize),e.mouseLeft<=0||e.mouseTop<0||e.mouseLeft>e.nzWidth||e.mouseTop>e.nzHeight?void e.setElements("hide"):(e.options.showLens&&(e.lensLeftPos=String(e.mouseLeft-e.zoomLens.width()/2),e.lensTopPos=String(e.mouseTop-e.zoomLens.height()/2)),e.Etoppos&&(e.lensTopPos=0),e.Eloppos&&(e.windowLeftPos=0,e.lensLeftPos=0,e.tintpos=0),"window"==e.options.zoomType&&(e.Eboppos&&(e.lensTopPos=Math.max(e.nzHeight-e.zoomLens.height()-2*e.options.lensBorderSize,0)),e.Eroppos&&(e.lensLeftPos=e.nzWidth-e.zoomLens.width()-2*e.options.lensBorderSize)),"inner"==e.options.zoomType&&(e.Eboppos&&(e.lensTopPos=Math.max(e.nzHeight-2*e.options.lensBorderSize,0)),e.Eroppos&&(e.lensLeftPos=e.nzWidth-e.nzWidth-2*e.options.lensBorderSize)),"lens"==e.options.zoomType&&(e.windowLeftPos=String(-1*((t.pageX-e.nzOffset.left)*e.widthRatio-e.zoomLens.width()/2)),e.windowTopPos=String(-1*((t.pageY-e.nzOffset.top)*e.heightRatio-e.zoomLens.height()/2)),e.zoomLens.css({backgroundPosition:e.windowLeftPos+"px "+e.windowTopPos+"px"}),e.changeBgSize&&(e.nzHeight>e.nzWidth?("lens"==e.options.zoomType&&e.zoomLens.css({"background-size":e.largeWidth/e.newvalueheight+"px "+e.largeHeight/e.newvalueheight+"px"}),e.zoomWindow.css({"background-size":e.largeWidth/e.newvalueheight+"px "+e.largeHeight/e.newvalueheight+"px"})):("lens"==e.options.zoomType&&e.zoomLens.css({"background-size":e.largeWidth/e.newvaluewidth+"px "+e.largeHeight/e.newvaluewidth+"px"}),e.zoomWindow.css({"background-size":e.largeWidth/e.newvaluewidth+"px "+e.largeHeight/e.newvaluewidth+"px"})),e.changeBgSize=!1),e.setWindowPostition(t)),e.options.tint&&"inner"!=e.options.zoomType&&e.setTintPosition(t),"window"==e.options.zoomType&&e.setWindowPostition(t),"inner"==e.options.zoomType&&e.setWindowPostition(t),e.options.showLens&&(e.fullwidth&&"lens"!=e.options.zoomType&&(e.lensLeftPos=0),e.zoomLens.css({left:e.lensLeftPos+"px",top:e.lensTopPos+"px"})),void 0)):!1},showHideWindow:function(t){var e=this;"show"==t&&(e.isWindowActive||(e.options.zoomWindowFadeIn?e.zoomWindow.stop(!0,!0,!1).fadeIn(e.options.zoomWindowFadeIn):e.zoomWindow.show(),e.isWindowActive=!0)),"hide"==t&&e.isWindowActive&&(e.options.zoomWindowFadeOut?e.zoomWindow.stop(!0,!0).fadeOut(e.options.zoomWindowFadeOut):e.zoomWindow.hide(),e.isWindowActive=!1)},showHideLens:function(t){var e=this;"show"==t&&(e.isLensActive||(e.options.lensFadeIn?e.zoomLens.stop(!0,!0,!1).fadeIn(e.options.lensFadeIn):e.zoomLens.show(),e.isLensActive=!0)),"hide"==t&&e.isLensActive&&(e.options.lensFadeOut?e.zoomLens.stop(!0,!0).fadeOut(e.options.lensFadeOut):e.zoomLens.hide(),e.isLensActive=!1)},showHideTint:function(t){var e=this;"show"==t&&(e.isTintActive||(e.options.zoomTintFadeIn?e.zoomTint.css({opacity:e.options.tintOpacity}).animate().stop(!0,!0).fadeIn("slow"):(e.zoomTint.css({opacity:e.options.tintOpacity}).animate(),e.zoomTint.show()),e.isTintActive=!0)),"hide"==t&&e.isTintActive&&(e.options.zoomTintFadeOut?e.zoomTint.stop(!0,!0).fadeOut(e.options.zoomTintFadeOut):e.zoomTint.hide(),e.isTintActive=!1)},setLensPostition:function(){},setWindowPostition:function(e){var i=this;if(isNaN(i.options.zoomWindowPosition))i.externalContainer=t("#"+i.options.zoomWindowPosition),i.externalContainerWidth=i.externalContainer.width(),i.externalContainerHeight=i.externalContainer.height(),i.externalContainerOffset=i.externalContainer.offset(),i.windowOffsetTop=i.externalContainerOffset.top,i.windowOffsetLeft=i.externalContainerOffset.left;else switch(i.options.zoomWindowPosition){case 1:i.windowOffsetTop=i.options.zoomWindowOffety,i.windowOffsetLeft=+i.nzWidth;break;case 2:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=-1*(i.options.zoomWindowHeight/2-i.nzHeight/2),i.windowOffsetLeft=i.nzWidth);break;case 3:i.windowOffsetTop=i.nzHeight-i.zoomWindow.height()-2*i.options.borderSize,i.windowOffsetLeft=i.nzWidth;break;case 4:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=i.nzWidth;break;case 5:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=i.nzWidth-i.zoomWindow.width()-2*i.options.borderSize;break;case 6:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=-1*(i.options.zoomWindowWidth/2-i.nzWidth/2+2*i.options.borderSize));break;case 7:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=0;break;case 8:i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 9:i.windowOffsetTop=i.nzHeight-i.zoomWindow.height()-2*i.options.borderSize,i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 10:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=-1*(i.options.zoomWindowHeight/2-i.nzHeight/2),i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize));break;case 11:i.windowOffsetTop=i.options.zoomWindowOffety,i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 12:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=-1*(i.zoomWindow.width()+2*i.options.borderSize);break;case 13:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=0;break;case 14:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=-1*(i.options.zoomWindowWidth/2-i.nzWidth/2+2*i.options.borderSize));break;case 15:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=i.nzWidth-i.zoomWindow.width()-2*i.options.borderSize;break;case 16:i.windowOffsetTop=-1*(i.zoomWindow.height()+2*i.options.borderSize),i.windowOffsetLeft=i.nzWidth;break;default:i.windowOffsetTop=i.options.zoomWindowOffety,i.windowOffsetLeft=i.nzWidth}i.isWindowSet=!0,i.windowOffsetTop=i.windowOffsetTop+i.options.zoomWindowOffety,i.windowOffsetLeft=i.windowOffsetLeft+i.options.zoomWindowOffetx,i.zoomWindow.css({top:i.windowOffsetTop}),i.zoomWindow.css({left:i.windowOffsetLeft}),"inner"==i.options.zoomType&&(i.zoomWindow.css({top:0}),i.zoomWindow.css({left:0})),i.windowLeftPos=String(-1*((e.pageX-i.nzOffset.left)*i.widthRatio-i.zoomWindow.width()/2)),i.windowTopPos=String(-1*((e.pageY-i.nzOffset.top)*i.heightRatio-i.zoomWindow.height()/2)),i.Etoppos&&(i.windowTopPos=0),i.Eloppos&&(i.windowLeftPos=0),i.Eboppos&&(i.windowTopPos=-1*(i.largeHeight/i.currentZoomLevel-i.zoomWindow.height())),i.Eroppos&&(i.windowLeftPos=-1*(i.largeWidth/i.currentZoomLevel-i.zoomWindow.width())),i.fullheight&&(i.windowTopPos=0),i.fullwidth&&(i.windowLeftPos=0),("window"==i.options.zoomType||"inner"==i.options.zoomType)&&(1==i.zoomLock&&(i.widthRatio<=1&&(i.windowLeftPos=0),i.heightRatio<=1&&(i.windowTopPos=0)),i.largeHeight i.nzWidth?("lens"==i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})):("lens"!=i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"})),i.changeBgSize=!1),i.zoomWindow.css({backgroundPosition:i.windowLeftPos+"px "+i.windowTopPos+"px"}),i.scrollingLock=!1,i.loop=!1):(i.changeBgSize&&(i.nzHeight>i.nzWidth?("lens"==i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})):("lens"!=i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"})),i.changeBgSize=!1),i.zoomWindow.css({backgroundPosition:i.xp+"px "+i.yp+"px"}))},16))):(i.changeBgSize&&(i.nzHeight>i.nzWidth?("lens"==i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})):("lens"==i.options.zoomType&&i.zoomLens.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"}),i.zoomWindow.css(i.largeHeight/i.newvaluewidth =maxheightnewvalue?(e.heightRatio=e.largeHeight/maxheightnewvalue/e.nzHeight,e.newvalueheight=maxheightnewvalue,e.fullheight=!0):(e.heightRatio=e.largeHeight/newvalue/e.nzHeight,e.newvalueheight=newvalue,e.fullheight=!1),newvalue>=maxwidthtnewvalue?(e.widthRatio=e.largeWidth/maxwidthtnewvalue/e.nzWidth,e.newvaluewidth=maxwidthtnewvalue,e.fullwidth=!0):(e.widthRatio=e.largeWidth/newvalue/e.nzWidth,e.newvaluewidth=newvalue,e.fullwidth=!1),"lens"==e.options.zoomType&&(newvalue>=maxheightnewvalue?(e.fullwidth=!0,e.newvaluewidth=maxheightnewvalue):(e.widthRatio=e.largeWidth/newvalue/e.nzWidth,e.newvaluewidth=newvalue,e.fullwidth=!1))),"inner"==e.options.zoomType&&(maxheightnewvalue=parseFloat(e.largeHeight/e.nzHeight).toFixed(2),maxwidthtnewvalue=parseFloat(e.largeWidth/e.nzWidth).toFixed(2),newvalue>maxheightnewvalue&&(newvalue=maxheightnewvalue),newvalue>maxwidthtnewvalue&&(newvalue=maxwidthtnewvalue),newvalue>=maxheightnewvalue?(e.heightRatio=e.largeHeight/newvalue/e.nzHeight,e.newvalueheight=newvalue>maxheightnewvalue?maxheightnewvalue:newvalue,e.fullheight=!0):(e.heightRatio=e.largeHeight/newvalue/e.nzHeight,e.newvalueheight=newvalue>maxheightnewvalue?maxheightnewvalue:newvalue,e.fullheight=!1),newvalue>=maxwidthtnewvalue?(e.widthRatio=e.largeWidth/newvalue/e.nzWidth,e.newvaluewidth=newvalue>maxwidthtnewvalue?maxwidthtnewvalue:newvalue,e.fullwidth=!0):(e.widthRatio=e.largeWidth/newvalue/e.nzWidth,e.newvaluewidth=newvalue,e.fullwidth=!1)),scrcontinue=!1,"inner"==e.options.zoomType&&(e.nzWidth>e.nzHeight&&(e.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,e.fullheight=!0,e.fullwidth=!0)),e.nzHeight>e.nzWidth&&(e.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,e.fullheight=!0,e.fullwidth=!0))),"inner"!=e.options.zoomType&&(scrcontinue=!0),scrcontinue&&(e.zoomLock=0,e.changeZoom=!0,e.options.zoomWindowHeight/e.heightRatio<=e.nzHeight&&(e.currentZoomLevel=e.newvalueheight,"lens"!=e.options.zoomType&&"inner"!=e.options.zoomType&&(e.changeBgSize=!0,e.zoomLens.css({height:String(e.options.zoomWindowHeight/e.heightRatio)+"px"})),("lens"==e.options.zoomType||"inner"==e.options.zoomType)&&(e.changeBgSize=!0)),e.options.zoomWindowWidth/e.widthRatio<=e.nzWidth&&("inner"!=e.options.zoomType&&e.newvaluewidth>e.newvalueheight&&(e.currentZoomLevel=e.newvaluewidth),"lens"!=e.options.zoomType&&"inner"!=e.options.zoomType&&(e.changeBgSize=!0,e.zoomLens.css({width:String(e.options.zoomWindowWidth/e.widthRatio)+"px"})),("lens"==e.options.zoomType||"inner"==e.options.zoomType)&&(e.changeBgSize=!0)),"inner"==e.options.zoomType&&(e.changeBgSize=!0,e.nzWidth>e.nzHeight&&(e.currentZoomLevel=e.newvaluewidth),e.nzHeight>e.nzWidth&&(e.currentZoomLevel=e.newvaluewidth))),e.setPosition(e.currentLoc) },closeAll:function(){self.zoomWindow&&self.zoomWindow.hide(),self.zoomLens&&self.zoomLens.hide(),self.zoomTint&&self.zoomTint.hide()},changeState:function(t){var e=this;"enable"==t&&(e.options.zoomEnabled=!0),"disable"==t&&(e.options.zoomEnabled=!1)}};t.fn.elevateZoom=function(i){return this.each(function(){var o=Object.create(e);o.init(i,this),t.data(this,"elevateZoom",o)})},t.fn.elevateZoom.options={zoomActivation:"hover",zoomEnabled:!0,preloading:1,zoomLevel:1,scrollZoom:!1,scrollZoomIncrement:.1,minZoomLevel:!1,maxZoomLevel:!1,easing:!1,easingAmount:12,lensSize:200,zoomWindowWidth:400,zoomWindowHeight:400,zoomWindowOffetx:0,zoomWindowOffety:0,zoomWindowPosition:1,zoomWindowBgColour:"#fff",lensFadeIn:!1,lensFadeOut:!1,debug:!1,zoomWindowFadeIn:!1,zoomWindowFadeOut:!1,zoomWindowAlwaysShow:!1,zoomTintFadeIn:!1,zoomTintFadeOut:!1,borderSize:4,showLens:!0,borderColour:"#888",lensBorderSize:1,lensBorderColour:"#000",lensShape:"square",zoomType:"window",containLensZoom:!1,lensColour:"white",lensOpacity:.4,lenszoom:!1,tint:!1,tintColour:"#333",tintOpacity:.4,gallery:!1,galleryActiveClass:"zoomGalleryActive",imageCrossfade:!1,constrainType:!1,constrainSize:!1,loadingIcon:!1,cursor:"default",responsive:!0,onComplete:t.noop,onZoomedImageLoaded:function(){},onImageSwap:t.noop,onImageSwapComplete:t.noop,zoomContainer:"body"}}(jQuery,window,document),function(t,e,i,o){"use strict";var n=i("html"),s=i(t),r=i(e),a=i.fancybox=function(){a.open.apply(this,arguments)},l=navigator.userAgent.match(/msie/i),h=null,c=e.createTouch!==o,d=function(t){return t&&t.hasOwnProperty&&t instanceof i},p=function(t){return t&&"string"===i.type(t)},u=function(t){return p(t)&&t.indexOf("%")>0},f=function(t){return t&&!(t.style.overflow&&"hidden"===t.style.overflow)&&(t.clientWidth&&t.scrollWidth>t.clientWidth||t.clientHeight&&t.scrollHeight>t.clientHeight)},m=function(t,e){var i=parseInt(t,10)||0;return e&&u(t)&&(i=a.getViewport()[e]/100*i),Math.ceil(i)},g=function(t,e){return m(t,e)+"px"};i.extend(a,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!c,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:' ',image:'',iframe:'",error:'The requested content cannot be loaded.
',closeBtn:'',next:'',prev:'',loading:'
Please try again later.'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){return t&&(i.isPlainObject(e)||(e={}),!1!==a.close(!0))?(i.isArray(t)||(t=d(t)?i(t).get():[t]),i.each(t,function(n,s){var r,l,h,c,u,f,m,g={};"object"===i.type(s)&&(s.nodeType&&(s=i(s)),d(s)?(g={href:s.data("fancybox-href")||s.attr("href"),title:i("").text(s.data("fancybox-title")||s.attr("title")||"").html(),isDom:!0,element:s},i.metadata&&i.extend(!0,g,s.metadata())):g=s),r=e.href||g.href||(p(s)?s:null),l=e.title!==o?e.title:g.title||"",h=e.content||g.content,c=h?"html":e.type||g.type,!c&&g.isDom&&(c=s.data("fancybox-type"),c||(u=s.prop("class").match(/fancybox\.(\w+)/),c=u?u[1]:null)),p(r)&&(c||(a.isImage(r)?c="image":a.isSWF(r)?c="swf":"#"===r.charAt(0)?c="inline":p(s)&&(c="html",h=s)),"ajax"===c&&(f=r.split(/\s+/,2),r=f.shift(),m=f.shift())),h||("inline"===c?r?h=i(p(r)?r.replace(/.*(?=#[^\s]+$)/,""):r):g.isDom&&(h=s):"html"===c?h=r:c||r||!g.isDom||(c="inline",h=s)),i.extend(g,{href:r,type:c,content:h,title:l,selector:m}),t[n]=g}),a.opts=i.extend(!0,{},a.defaults,e),e.keys!==o&&(a.opts.keys=e.keys?i.extend({},a.defaults.keys,e.keys):!1),a.group=t,a._start(a.opts.index)):void 0},cancel:function(){var t=a.coming;t&&!1===a.trigger("onCancel")||(a.hideLoading(),t&&(a.ajaxLoad&&a.ajaxLoad.abort(),a.ajaxLoad=null,a.imgPreload&&(a.imgPreload.onload=a.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0,!0).trigger("onReset").remove(),a.coming=null,a.current||a._afterZoomOut(t)))},close:function(t){a.cancel(),!1!==a.trigger("beforeClose")&&(a.unbindEvents(),a.isActive&&(a.isOpen&&t!==!0?(a.isOpen=a.isOpened=!1,a.isClosing=!0,i(".fancybox-item, .fancybox-nav").remove(),a.wrap.stop(!0,!0).removeClass("fancybox-opened"),a.transitions[a.current.closeMethod]()):(i(".fancybox-wrap").stop(!0).trigger("onReset").remove(),a._afterZoomOut())))},play:function(t){var e=function(){clearTimeout(a.player.timer)},i=function(){e(),a.current&&a.player.isActive&&(a.player.timer=setTimeout(a.next,a.current.playSpeed))},o=function(){e(),r.unbind(".player"),a.player.isActive=!1,a.trigger("onPlayEnd")},n=function(){a.current&&(a.current.loop||a.current.index=n.index?"next":"prev"],a.router=i||"jumpto",n.loop&&(0>t&&(t=n.group.length+t%n.group.length),t%=n.group.length),n.group[t]!==o&&(a.cancel(),a._start(t)))},reposition:function(t,e){var o,n=a.current,s=n?n.wrap:null;s&&(o=a._getPosition(e),t&&"scroll"===t.type?(delete o.position,s.stop(!0,!0).animate(o,200)):(s.css(o),n.pos=i.extend({},n.dim,o)))},update:function(t){var e=t&&t.originalEvent&&t.originalEvent.type,i=!e||"orientationchange"===e;i&&(clearTimeout(h),h=null),a.isOpen&&!h&&(h=setTimeout(function(){var o=a.current;o&&!a.isClosing&&(a.wrap.removeClass("fancybox-tmp"),(i||"load"===e||"resize"===e&&o.autoResize)&&a._setDimension(),"scroll"===e&&o.canShrink||a.reposition(t),a.trigger("onUpdate"),h=null)},i&&!c?0:300))},toggle:function(t){a.isOpen&&(a.current.fitToView="boolean"===i.type(t)?t:!a.current.fitToView,c&&(a.wrap.removeAttr("style").addClass("fancybox-tmp"),a.trigger("onUpdate")),a.update())},hideLoading:function(){r.unbind(".loading"),i("#fancybox-loading").remove()},showLoading:function(){var t,e;a.hideLoading(),t=i(a.opts.tpl.loading).click(a.cancel).appendTo("body"),r.bind("keydown.loading",function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),a.cancel())}),a.defaults.fixed||(e=a.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x})),a.trigger("onLoading")},getViewport:function(){var e=a.current&&a.current.locked||!1,i={x:s.scrollLeft(),y:s.scrollTop()};return e&&e.length?(i.w=e[0].clientWidth,i.h=e[0].clientHeight):(i.w=c&&t.innerWidth?t.innerWidth:s.width(),i.h=c&&t.innerHeight?t.innerHeight:s.height()),i},unbindEvents:function(){a.wrap&&d(a.wrap)&&a.wrap.unbind(".fb"),r.unbind(".fb"),s.unbind(".fb")},bindEvents:function(){var t,e=a.current;e&&(s.bind("orientationchange.fb"+(c?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),a.update),t=e.keys,t&&r.bind("keydown.fb",function(n){var s=n.which||n.keyCode,r=n.target||n.srcElement;return 27===s&&a.coming?!1:void(n.ctrlKey||n.altKey||n.shiftKey||n.metaKey||r&&(r.type||i(r).is("[contenteditable]"))||i.each(t,function(t,r){return e.group.length>1&&r[s]!==o?(a[t](r[s]),n.preventDefault(),!1):i.inArray(s,r)>-1?(a[t](),n.preventDefault(),!1):void 0}))}),i.fn.mousewheel&&e.mouseWheel&&a.wrap.bind("mousewheel.fb",function(t,o,n,s){for(var r=t.target||null,l=i(r),h=!1;l.length&&!(h||l.is(".fancybox-skin")||l.is(".fancybox-wrap"));)h=f(l[0]),l=i(l).parent();0===o||h||a.group.length>1&&!e.canShrink&&(s>0||n>0?a.prev(s>0?"down":"left"):(0>s||0>n)&&a.next(0>s?"up":"right"),t.preventDefault())}))},trigger:function(t,e){var o,n=e||a.coming||a.current;if(n){if(i.isFunction(n[t])&&(o=n[t].apply(n,Array.prototype.slice.call(arguments,1))),o===!1)return!1;n.helpers&&i.each(n.helpers,function(e,o){o&&a.helpers[e]&&i.isFunction(a.helpers[e][t])&&a.helpers[e][t](i.extend(!0,{},a.helpers[e].defaults,o),n)})}r.trigger(t)},isImage:function(t){return p(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return p(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,o,n,s,r,l={};if(t=m(t),e=a.group[t]||null,!e)return!1;if(l=i.extend(!0,{},a.opts,e),s=l.margin,r=l.padding,"number"===i.type(s)&&(l.margin=[s,s,s,s]),"number"===i.type(r)&&(l.padding=[r,r,r,r]),l.modal&&i.extend(!0,l,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),l.autoSize&&(l.autoWidth=l.autoHeight=!0),"auto"===l.width&&(l.autoWidth=!0),"auto"===l.height&&(l.autoHeight=!0),l.group=a.group,l.index=t,a.coming=l,!1===a.trigger("beforeLoad"))return void(a.coming=null);if(n=l.type,o=l.href,!n)return a.coming=null,a.current&&a.router&&"jumpto"!==a.router?(a.current.index=t,a[a.router](a.direction)):!1;if(a.isActive=!0,("image"===n||"swf"===n)&&(l.autoHeight=l.autoWidth=!1,l.scrolling="visible"),"image"===n&&(l.aspectRatio=!0),"iframe"===n&&c&&(l.scrolling="scroll"),l.wrap=i(l.tpl.wrap).addClass("fancybox-"+(c?"mobile":"desktop")+" fancybox-type-"+n+" fancybox-tmp "+l.wrapCSS).appendTo(l.parent||"body"),i.extend(l,{skin:i(".fancybox-skin",l.wrap),outer:i(".fancybox-outer",l.wrap),inner:i(".fancybox-inner",l.wrap)}),i.each(["Top","Right","Bottom","Left"],function(t,e){l.skin.css("padding"+e,g(l.padding[t]))}),a.trigger("onReady"),"inline"===n||"html"===n){if(!l.content||!l.content.length)return a._error("content")}else if(!o)return a._error("href");"image"===n?a._loadImage():"ajax"===n?a._loadAjax():"iframe"===n?a._loadIframe():a._afterLoad()},_error:function(t){i.extend(a.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:a.coming.tpl.error}),a._afterLoad()},_loadImage:function(){var t=a.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,a.coming.width=this.width/a.opts.pixelRatio,a.coming.height=this.height/a.opts.pixelRatio,a._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,a._error("image")},t.src=a.coming.href,t.complete!==!0&&a.showLoading()},_loadAjax:function(){var t=a.coming;a.showLoading(),a.ajaxLoad=i.ajax(i.extend({},t.ajax,{url:t.href,error:function(t,e){a.coming&&"abort"!==e?a._error("ajax",t):a.hideLoading()},success:function(e,i){"success"===i&&(t.content=e,a._afterLoad())}}))},_loadIframe:function(){var t=a.coming,e=i(t.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",c?"auto":t.iframe.scrolling).attr("src",t.href);i(t.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}}),t.iframe.preload&&(a.showLoading(),e.one("load",function(){i(this).data("ready",1),c||i(this).bind("load.fb",a.update),i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),a._afterLoad()})),t.content=e.appendTo(t.inner),t.iframe.preload||a._afterLoad()},_preloadImages:function(){var t,e,i=a.group,o=a.current,n=i.length,s=o.preload?Math.min(o.preload,n-1):0;for(e=1;s>=e;e+=1)t=i[(o.index+e)%n],"image"===t.type&&t.href&&((new Image).src=t.href)},_afterLoad:function(){var t,e,o,n,s,r,l=a.coming,h=a.current,c="fancybox-placeholder";if(a.hideLoading(),l&&a.isActive!==!1){if(!1===a.trigger("afterLoad",l,h))return l.wrap.stop(!0).trigger("onReset").remove(),void(a.coming=null);switch(h&&(a.trigger("beforeChange",h),h.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),a.unbindEvents(),t=l,e=l.content,o=l.type,n=l.scrolling,i.extend(a,{wrap:t.wrap,skin:t.skin,outer:t.outer,inner:t.inner,current:t,previous:h}),s=t.href,o){case"inline":case"ajax":case"html":t.selector?e=i(" ").html(e).find(t.selector):d(e)&&(e.data(c)||e.data(c,i('').insertAfter(e).hide()),e=e.show().detach(),t.wrap.bind("onReset",function(){i(this).find(e).length&&e.hide().replaceAll(e.data(c)).data(c,!1)}));break;case"image":e=t.tpl.image.replace(/\{href\}/g,s);break;case"swf":e='"}d(e)&&e.parent().is(t.inner)||t.inner.append(e),a.trigger("beforeShow"),t.inner.css("overflow","yes"===n?"scroll":"no"===n?"hidden":n),a._setDimension(),a.reposition(),a.isOpen=!1,a.coming=null,a.bindEvents(),a.isOpened?h.prevMethod&&a.transitions[h.prevMethod]():i(".fancybox-wrap").not(t.wrap).stop(!0).trigger("onReset").remove(),a.transitions[a.isOpened?t.nextMethod:t.openMethod](),a._preloadImages()}},_setDimension:function(){var t,e,o,n,s,r,l,h,c,d,p,f,v,y,w,b=a.getViewport(),x=0,z=!1,C=!1,_=a.wrap,T=a.skin,S=a.inner,I=a.current,E=I.width,k=I.height,A=I.minWidth,W=I.minHeight,L=I.maxWidth,O=I.maxHeight,P=I.scrolling,B=I.scrollOutside?I.scrollbarWidth:0,D=I.margin,R=m(D[1]+D[3]),M=m(D[0]+D[2]);if(_.add(T).add(S).width("auto").height("auto").removeClass("fancybox-tmp"),t=m(T.outerWidth(!0)-T.width()),e=m(T.outerHeight(!0)-T.height()),o=R+t,n=M+e,s=u(E)?(b.w-o)*m(E)/100:E,r=u(k)?(b.h-n)*m(k)/100:k,"iframe"===I.type){if(y=I.content,I.autoHeight&&y&&1===y.data("ready"))try{y[0].contentWindow.document.location&&(S.width(s).height(9999),w=y.contents().find("body"),B&&w.css("overflow-x","hidden"),r=w.outerHeight(!0))}catch(j){}}else(I.autoWidth||I.autoHeight)&&(S.addClass("fancybox-tmp"),I.autoWidth||S.width(s),I.autoHeight||S.height(r),I.autoWidth&&(s=S.width()),I.autoHeight&&(r=S.height()),S.removeClass("fancybox-tmp"));if(E=m(s),k=m(r),c=s/r,A=m(u(A)?m(A,"w")-o:A),L=m(u(L)?m(L,"w")-o:L),W=m(u(W)?m(W,"h")-n:W),O=m(u(O)?m(O,"h")-n:O),l=L,h=O,I.fitToView&&(L=Math.min(b.w-o,L),O=Math.min(b.h-n,O)),f=b.w-R,v=b.h-M,I.aspectRatio?(E>L&&(E=L,k=m(E/c)),k>O&&(k=O,E=m(k*c)),A>E&&(E=A,k=m(E/c)),W>k&&(k=W,E=m(k*c))):(E=Math.max(A,Math.min(E,L)),I.autoHeight&&"iframe"!==I.type&&(S.width(E),k=S.height()),k=Math.max(W,Math.min(k,O))),I.fitToView)if(S.width(E).height(k),_.width(E+t),d=_.width(),p=_.height(),I.aspectRatio)for(;(d>f||p>v)&&E>A&&k>W&&!(x++>19);)k=Math.max(W,Math.min(O,k-10)),E=m(k*c),A>E&&(E=A,k=m(E/c)),E>L&&(E=L,k=m(E/c)),S.width(E).height(k),_.width(E+t),d=_.width(),p=_.height();else E=Math.max(A,Math.min(E,E-(d-f))),k=Math.max(W,Math.min(k,k-(p-v)));B&&"auto"===P&&r>k&&f>E+t+B&&(E+=B),S.width(E).height(k),_.width(E+t),d=_.width(),p=_.height(),z=(d>f||p>v)&&E>A&&k>W,C=I.aspectRatio?l>E&&h>k&&s>E&&r>k:(l>E||h>k)&&(s>E||r>k),i.extend(I,{dim:{width:g(d),height:g(p)},origWidth:s,origHeight:r,canShrink:z,canExpand:C,wPadding:t,hPadding:e,wrapSpace:p-T.outerHeight(!0),skinSpace:T.height()-k}),!y&&I.autoHeight&&k>W&&O>k&&!C&&S.height("auto")},_getPosition:function(t){var e=a.current,i=a.getViewport(),o=e.margin,n=a.wrap.width()+o[1]+o[3],s=a.wrap.height()+o[0]+o[2],r={position:"absolute",top:o[0],left:o[3]};return e.autoCenter&&e.fixed&&!t&&s<=i.h&&n<=i.w?r.position="fixed":e.locked||(r.top+=i.y,r.left+=i.x),r.top=g(Math.max(r.top,r.top+(i.h-s)*e.topRatio)),r.left=g(Math.max(r.left,r.left+(i.w-n)*e.leftRatio)),r},_afterZoomIn:function(){var t=a.current;t&&(a.isOpen=a.isOpened=!0,a.wrap.css("overflow","visible").addClass("fancybox-opened").hide().show(0),a.update(),(t.closeClick||t.nextClick&&a.group.length>1)&&a.inner.css("cursor","pointer").bind("click.fb",function(e){i(e.target).is("a")||i(e.target).parent().is("a")||(e.preventDefault(),a[t.closeClick?"close":"next"]())}),t.closeBtn&&i(t.tpl.closeBtn).appendTo(a.skin).bind("click.fb",function(t){t.preventDefault(),a.close()}),t.arrows&&a.group.length>1&&((t.loop||t.index>0)&&i(t.tpl.prev).appendTo(a.outer).bind("click.fb",a.prev),(t.loop||t.index').appendTo(e&&e.length?e:"body"),this.fixed=!1,t.fixed&&a.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(t){var e=this;t=i.extend({},this.defaults,t),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(t),this.fixed||(s.bind("resize.overlay",i.proxy(this.update,this)),this.update()),t.closeClick&&this.overlay.bind("click.overlay",function(t){return i(t.target).hasClass("fancybox-overlay")?(a.isActive?a.close():e.close(),!1):void 0}),this.overlay.css(t.css).show()},close:function(){s.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(i(".fancybox-margin").removeClass("fancybox-margin"),this.el.removeClass("fancybox-lock"),s.scrollTop(this.scrollV).scrollLeft(this.scrollH)),i(".fancybox-overlay").remove().hide(),i.extend(this,{overlay:null,fixed:!1})},update:function(){var t,i="100%";this.overlay.width(i).height("100%"),l?(t=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth),r.width()>t&&(i=r.width())):r.width()>s.width()&&(i=r.width()),this.overlay.width(i).height(r.height())},onReady:function(t,e){var o=this.overlay;i(".fancybox-overlay").stop(!0,!0),o||this.create(t),t.locked&&this.fixed&&e.fixed&&(e.locked=this.overlay.append(e.wrap),e.fixed=!1),t.showEarly===!0&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){e.locked&&!this.el.hasClass("fancybox-lock")&&(this.fixPosition!==!1&&i("*:not(object)").filter(function(){return"fixed"===i(this).css("position")&&!i(this).hasClass("fancybox-overlay")&&!i(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin"),this.scrollV=s.scrollTop(),this.scrollH=s.scrollLeft(),this.el.addClass("fancybox-lock"),s.scrollTop(this.scrollV).scrollLeft(this.scrollH)),this.open(t)},onUpdate:function(){this.fixed||this.update()},afterClose:function(t){this.overlay&&!a.coming&&this.overlay.fadeOut(t.speedOut,i.proxy(this.close,this))}},a.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(t){var e,o,n=a.current,s=n.title,r=t.type;if(i.isFunction(s)&&(s=s.call(n.element,n)),p(s)&&""!==i.trim(s)){switch(e=i(''+s+""),r){case"inside":o=a.skin;break;case"outside":o=a.wrap;break;case"over":o=a.inner;break;default:o=a.skin,e.appendTo("body"),l&&e.width(e.width()),e.wrapInner(''),a.current.margin[2]+=Math.abs(m(e.css("margin-bottom")))}e["top"===t.position?"prependTo":"appendTo"](o)}}},i.fn.fancybox=function(t){var e,o=i(this),n=this.selector||"",s=function(s){var r,l,h=i(this).blur(),c=e;s.ctrlKey||s.altKey||s.shiftKey||s.metaKey||h.is(".fancybox-wrap")||(r=t.groupAttr||"data-fancybox-group",l=h.attr(r),l||(r="rel",l=h.get(0)[r]),l&&""!==l&&"nofollow"!==l&&(h=n.length?i(n):o,h=h.filter("["+r+'="'+l+'"]'),c=h.index(this)),t.index=c,a.open(h,t)!==!1&&s.preventDefault())};return t=t||{},e=t.index||0,n&&t.live!==!1?r.undelegate(n,"click.fb-start").delegate(n+":not('.fancybox-item, .fancybox-nav')","click.fb-start",s):o.unbind("click.fb-start").bind("click.fb-start",s),this.filter("[data-fancybox-start=1]").trigger("click"),this},r.ready(function(){var e,s;i.scrollbarWidth===o&&(i.scrollbarWidth=function(){var t=i('').appendTo("body"),e=t.children(),o=e.innerWidth()-e.height(99).innerWidth();return t.remove(),o}),i.support.fixedPosition===o&&(i.support.fixedPosition=function(){var t=i('').appendTo("body"),e=20===t[0].offsetTop||15===t[0].offsetTop;return t.remove(),e}()),i.extend(a.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")}),e=i(t).width(),n.addClass("fancybox-lock-test"),s=i(t).width(),n.removeClass("fancybox-lock-test"),i("").appendTo("head")})}(window,document,jQuery);var scrolltotop={setting:{startline:100,scrollto:0,scrollduration:1e3,fadeduration:[500,100]},controlHTML:'',controlattrs:{offsetx:10,offsety:10},anchorkeyword:"#top",state:{isvisible:!1,shouldvisible:!1},scrollup:function(){this.cssfixedsupport||this.$control.css({opacity:0});var t=isNaN(this.setting.scrollto)?this.setting.scrollto:parseInt(this.setting.scrollto);t="string"==typeof t&&1==jQuery("#"+t).length?jQuery("#"+t).offset().top:0,this.$body.animate({scrollTop:t},this.setting.scrollduration)},keepfixed:function(){var t=jQuery(window),e=t.scrollLeft()+t.width()-this.$control.width()-this.controlattrs.offsetx,i=t.scrollTop()+t.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:e+"px",top:i+"px"})},togglecontrol:function(){var t=jQuery(window).scrollTop();this.cssfixedsupport||this.keepfixed(),this.state.shouldvisible=t>=this.setting.startline?!0:!1,this.state.shouldvisible&&!this.state.isvisible?(this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]),this.state.isvisible=!0):0==this.state.shouldvisible&&this.state.isvisible&&(this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]),this.state.isvisible=!1)},init:function(){jQuery(document).ready(function(t){var e=scrolltotop,i=document.all;e.cssfixedsupport=!i||i&&"CSS1Compat"==document.compatMode&&window.XMLHttpRequest,e.$body=t(window.opera?"CSS1Compat"==document.compatMode?"html":"body":"html,body"),e.$control=t(''+e.controlHTML+"").css({position:e.cssfixedsupport?"fixed":"absolute",bottom:e.controlattrs.offsety,opacity:0,cursor:"pointer"}).attr({title:""}).click(function(){return e.scrollup(),!1}).appendTo("body"),document.all&&!window.XMLHttpRequest&&""!=e.$control.text()&&e.$control.css({width:e.$control.width()}),e.togglecontrol(),t('a[href="'+e.anchorkeyword+'"]').click(function(){return e.scrollup(),!1}),t(window).bind("scroll resize",function(){e.togglecontrol()})})}};!function(t){var e=-1,i=-1,o=function(t){return parseFloat(t)||0},n=function(e){var i=1,n=t(e),s=null,r=[];return n.each(function(){var e=t(this),n=e.offset().top-o(e.css("margin-top")),a=r.length>0?r[r.length-1]:null;null===a?r.push(e):Math.floor(Math.abs(s-n))<=i?r[r.length-1]=a.add(e):r.push(e),s=n}),r},s=function(e){var i={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(i,e):("boolean"==typeof e?i.byRow=e:"remove"===e&&(i.remove=!0),i)},r=t.fn.matchHeight=function(e){var i=s(e);if(i.remove){var o=this;return this.css(i.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(o)}),this}return this.length<=1&&!i.target?this:(r._groups.push({elements:this,options:i}),r._apply(this,i),this)};r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,r._afterUpdate=null,r._apply=function(e,i){var a=s(i),l=t(e),h=[l],c=t(window).scrollTop(),d=t("html").outerHeight(!0),p=l.parents().filter(":hidden");return p.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),p.css("display","block"),a.byRow&&!a.target&&(l.each(function(){var e=t(this),i="inline-block"===e.css("display")?"inline-block":"block";e.data("style-cache",e.attr("style")),e.css({display:i,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px"})}),h=n(l),l.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(h,function(e,i){var n=t(i),s=0;if(a.target)s=a.target.outerHeight(!1);else{if(a.byRow&&n.length<=1)return void n.css(a.property,"");n.each(function(){var e=t(this),i="inline-block"===e.css("display")?"inline-block":"block",o={display:i};o[a.property]="",e.css(o),e.outerHeight(!1)>s&&(s=e.outerHeight(!1)),e.css("display","")})}n.each(function(){var e=t(this),i=0;a.target&&e.is(a.target)||("border-box"!==e.css("box-sizing")&&(i+=o(e.css("border-top-width"))+o(e.css("border-bottom-width")),i+=o(e.css("padding-top"))+o(e.css("padding-bottom"))),e.css(a.property,s-i))})}),p.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(c/d*t("html").outerHeight(!0)),this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var i=t(this),o=i.attr("data-mh")||i.attr("data-match-height");e[o]=o in e?e[o].add(i):i}),t.each(e,function(){this.matchHeight(!0)})};var a=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(o,n){if(n&&"resize"===n.type){var s=t(window).width();if(s===e)return;e=s}o?-1===i&&(i=setTimeout(function(){a(n),i=-1},r._throttle)):a(n)},t(r._applyDataApi),t(window).bind("load",function(t){r._update(!1,t)}),t(window).bind("resize orientationchange",function(t){r._update(!0,t)})}(jQuery),window.Modernizr=function(t,e,i){function o(t){y.cssText=t}function n(t,e){return typeof t===e}function s(t,e){return!!~(""+t).indexOf(e)}function r(t,e){for(var o in t){var n=t[o];if(!s(n,"-")&&y[n]!==i)return"pfx"==e?n:!0}return!1}function a(t,e,o){for(var s in t){var r=e[t[s]];if(r!==i)return o===!1?t[s]:n(r,"function")?r.bind(o||e):r}return!1}function l(t,e,i){var o=t.charAt(0).toUpperCase()+t.slice(1),s=(t+" "+x.join(o+" ")+o).split(" ");return n(e,"string")||n(e,"undefined")?r(s,e):(s=(t+" "+z.join(o+" ")+o).split(" "),a(s,e,i))}var h,c,d,p="2.8.3",u={},f=!0,m=e.documentElement,g="modernizr",v=e.createElement(g),y=v.style,w=({}.toString," -webkit- -moz- -o- -ms- ".split(" ")),b="Webkit Moz O ms",x=b.split(" "),z=b.toLowerCase().split(" "),C={},_=[],T=_.slice,S=function(t,i,o,n){var s,r,a,l,h=e.createElement("div"),c=e.body,d=c||e.createElement("body");if(parseInt(o,10))for(;o--;)a=e.createElement("div"),a.id=n?n[o]:g+(o+1),h.appendChild(a);return s=["",'"].join(""),h.id=g,(c?h:d).innerHTML+=s,d.appendChild(h),c||(d.style.background="",d.style.overflow="hidden",l=m.style.overflow,m.style.overflow="hidden",m.appendChild(d)),r=i(h,t),c?h.parentNode.removeChild(h):(d.parentNode.removeChild(d),m.style.overflow=l),!!r},I=function(e){var i=t.matchMedia||t.msMatchMedia;if(i)return i(e)&&i(e).matches||!1;var o;return S("@media "+e+" { #"+g+" { position: absolute; }}",function(e){o="absolute"==(t.getComputedStyle?getComputedStyle(e,null):e.currentStyle).position}),o},E={}.hasOwnProperty;d=n(E,"undefined")||n(E.call,"undefined")?function(t,e){return e in t&&n(t.constructor.prototype[e],"undefined")}:function(t,e){return E.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError;var i=T.call(arguments,1),o=function(){if(this instanceof o){var n=function(){};n.prototype=e.prototype;var s=new n,r=e.apply(s,i.concat(T.call(arguments)));return Object(r)===r?r:s}return e.apply(t,i.concat(T.call(arguments)))};return o}),C.touch=function(){var i;return"ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch?i=!0:S(["@media (",w.join("touch-enabled),("),g,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(t){i=9===t.offsetTop}),i},C.csstransforms3d=function(){var t=!!l("perspective");return t&&"webkitPerspective"in m.style&&S("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(e){t=9===e.offsetLeft&&3===e.offsetHeight}),t},C.csstransitions=function(){return l("transition") };for(var k in C)d(C,k)&&(c=k.toLowerCase(),u[c]=C[k](),_.push((u[c]?"":"no-")+c));return u.addTest=function(t,e){if("object"==typeof t)for(var o in t)d(t,o)&&u.addTest(o,t[o]);else{if(t=t.toLowerCase(),u[t]!==i)return u;e="function"==typeof e?e():e,"undefined"!=typeof f&&f&&(m.className+=" "+(e?"":"no-")+t),u[t]=e}return u},o(""),v=h=null,function(t,e){function i(t,e){var i=t.createElement("p"),o=t.getElementsByTagName("head")[0]||t.documentElement;return i.innerHTML="x",o.insertBefore(i.lastChild,o.firstChild)}function o(){var t=y.elements;return"string"==typeof t?t.split(" "):t}function n(t){var e=v[t[m]];return e||(e={},g++,t[m]=g,v[g]=e),e}function s(t,i,o){if(i||(i=e),c)return i.createElement(t);o||(o=n(i));var s;return s=o.cache[t]?o.cache[t].cloneNode():f.test(t)?(o.cache[t]=o.createElem(t)).cloneNode():o.createElem(t),!s.canHaveChildren||u.test(t)||s.tagUrn?s:o.frag.appendChild(s)}function r(t,i){if(t||(t=e),c)return t.createDocumentFragment();i=i||n(t);for(var s=i.frag.cloneNode(),r=0,a=o(),l=a.length;l>r;r++)s.createElement(a[r]);return s}function a(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(i){return y.shivMethods?s(i,t,e):e.createElem(i)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+o().join().replace(/[\w\-]+/g,function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'})+");return n}")(y,e.frag)}function l(t){t||(t=e);var o=n(t);return y.shivCSS&&!h&&!o.hasCSS&&(o.hasCSS=!!i(t,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),c||a(t,o),t}var h,c,d="3.7.0",p=t.html5||{},u=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,m="_html5shiv",g=0,v={};!function(){try{var t=e.createElement("a");t.innerHTML="",h="hidden"in t,c=1==t.childNodes.length||function(){e.createElement("a");var t=e.createDocumentFragment();return"undefined"==typeof t.cloneNode||"undefined"==typeof t.createDocumentFragment||"undefined"==typeof t.createElement}()}catch(i){h=!0,c=!0}}();var y={elements:p.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:d,shivCSS:p.shivCSS!==!1,supportsUnknownElements:c,shivMethods:p.shivMethods!==!1,type:"default",shivDocument:l,createElement:s,createDocumentFragment:r};t.html5=y,l(e)}(this,e),u._version=p,u._prefixes=w,u._domPrefixes=z,u._cssomPrefixes=x,u.mq=I,u.testProp=function(t){return r([t])},u.testAllProps=l,u.testStyles=S,u.prefixed=function(t,e,i){return e?l(t,e,i):l(t,"pfx")},m.className=m.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+_.join(" "):""),u}(this,this.document),function(t,e,i){function o(t){return"[object Function]"==g.call(t)}function n(t){return"string"==typeof t}function s(){}function r(t){return!t||"loaded"==t||"complete"==t||"uninitialized"==t}function a(){var t=v.shift();y=1,t?t.t?f(function(){("c"==t.t?p.injectCss:p.injectJs)(t.s,0,t.a,t.x,t.e,1)},0):(t(),a()):y=0}function l(t,i,o,n,s,l,h){function c(e){if(!u&&r(d.readyState)&&(w.r=u=1,!y&&a(),d.onload=d.onreadystatechange=null,e)){"img"!=t&&f(function(){x.removeChild(d)},50);for(var o in S[i])S[i].hasOwnProperty(o)&&S[i][o].onload()}}var h=h||p.errorTimeout,d=e.createElement(t),u=0,g=0,w={t:o,s:i,e:s,a:l,x:h};1===S[i]&&(g=1,S[i]=[]),"object"==t?d.data=i:(d.src=i,d.type=t),d.width=d.height="0",d.onerror=d.onload=d.onreadystatechange=function(){c.call(this,g)},v.splice(n,0,w),"img"!=t&&(g||2===S[i]?(x.insertBefore(d,b?null:m),f(c,h)):S[i].push(d))}function h(t,e,i,o,s){return y=0,e=e||"j",n(t)?l("c"==e?C:z,t,e,this.i++,i,o,s):(v.splice(this.i++,0,t),1==v.length&&a()),this}function c(){var t=p;return t.loader={load:h,i:0},t}var d,p,u=e.documentElement,f=t.setTimeout,m=e.getElementsByTagName("script")[0],g={}.toString,v=[],y=0,w="MozAppearance"in u.style,b=w&&!!e.createRange().compareNode,x=b?u:m.parentNode,u=t.opera&&"[object Opera]"==g.call(t.opera),u=!!e.attachEvent&&!u,z=w?"object":u?"script":"img",C=u?"script":z,_=Array.isArray||function(t){return"[object Array]"==g.call(t)},T=[],S={},I={timeout:function(t,e){return e.length&&(t.timeout=e[0]),t}};p=function(t){function e(t){var e,i,o,t=t.split("!"),n=T.length,s=t.pop(),r=t.length,s={url:s,origUrl:s,prefixes:t};for(i=0;r>i;i++)o=t[i].split("="),(e=I[o.shift()])&&(s=e(s,o));for(i=0;n>i;i++)s=T[i](s);return s}function r(t,n,s,r,a){var l=e(t),h=l.autoCallback;l.url.split(".").pop().split("?").shift(),l.bypass||(n&&(n=o(n)?n:n[t]||n[r]||n[t.split("/").pop().split("?")[0]]),l.instead?l.instead(t,n,s,r,a):(S[l.url]?l.noexec=!0:S[l.url]=1,s.load(l.url,l.forceCSS||!l.forceJS&&"css"==l.url.split(".").pop().split("?").shift()?"c":i,l.noexec,l.attrs,l.timeout),(o(n)||o(h))&&s.load(function(){c(),n&&n(l.origUrl,a,r),h&&h(l.origUrl,a,r),S[l.url]=2})))}function a(t,e){function i(t,i){if(t){if(n(t))i||(d=function(){var t=[].slice.call(arguments);p.apply(this,t),u()}),r(t,d,e,0,h);else if(Object(t)===t)for(l in a=function(){var e,i=0;for(e in t)t.hasOwnProperty(e)&&i++;return i}(),t)t.hasOwnProperty(l)&&(!i&&!--a&&(o(d)?d=function(){var t=[].slice.call(arguments);p.apply(this,t),u()}:d[l]=function(t){return function(){var e=[].slice.call(arguments);t&&t.apply(this,e),u()}}(p[l])),r(t[l],d,e,l,h))}else!i&&u()}var a,l,h=!!t.test,c=t.load||t.both,d=t.callback||s,p=d,u=t.complete||s;i(h?t.yep:t.nope,!!c),c&&i(c)}var l,h,d=this.yepnope.loader;if(n(t))r(t,0,d,0);else if(_(t))for(l=0;l 0&&(this._addNav(),this.support&&this._layout())},this))},_addNav:function(){var e=this,i=t(' '),o=t('');t("").append(i,o).appendTo(this.$el),i.find("span").on("click.flipshow touchstart.flipshow",function(){e._navigate(t(this),"left")}),o.find("span").on("click.flipshow touchstart.flipshow",function(){e._navigate(t(this),"right")})},_layout:function(){this.$flipFront=t(''),this.$frontContent=this.$flipFront.children("div:first"),this.$flipBack=t(''),this.$backContent=this.$flipBack.children("div:first"),this.$flipEl=t('').append(this.$flipFront,this.$flipBack).hide().appendTo(this.$el)},_navigate:function(t,e){if(this.isAnimating&&this.support)return!1;this.isAnimating=!0;var i=this.$items.eq(this.current).hide();"right"===e?this.current0?--this.current:this.current=this.itemsCount-1);var o=this.$items.eq(this.current);this.support?this._flip(i,o,e,t.index()):o.show()},_flip:function(e,i,o,n){var s="",r=t(''),a=t('');if("undefined"!=typeof this.$flipEl){this.$flipEl.css("transition",this.transitionProperties),this.$flipFront.find("div.fc-overlay-light, div.fc-overlay-dark").remove(),this.$flipBack.find("div.fc-overlay-light, div.fc-overlay-dark").remove(),"right"===o?(this.$flipFront.append(r),this.$flipBack.append(a),a.css("opacity",1)):"left"===o&&(this.$flipFront.append(a),this.$flipBack.append(r),r.css("opacity",1));var l={transition:"opacity "+this.options.speed/1.3+"ms"};switch(r.css(l),a.css(l),n){case 0:s="left"===o?"rotate3d(-1,1,0,-179deg) rotate3d(-1,1,0,-1deg)":"rotate3d(1,1,0,180deg)";break;case 1:s="left"===o?"rotate3d(0,1,0,-179deg) rotate3d(0,1,0,-1deg)":"rotate3d(0,1,0,180deg)";break;case 2:s="left"===o?"rotate3d(1,1,0,-179deg) rotate3d(1,1,0,-1deg)":"rotate3d(-1,1,0,179deg) rotate3d(-1,1,0,1deg)"}this.$flipBack.css("transform",s),this.$frontContent.empty().html(e.html()),this.$backContent.empty().html(i.html()),this.$flipEl.show();var h=this;setTimeout(function(){h.$flipEl.css("transform",s),r.css("opacity","right"===o?1:0),a.css("opacity","right"===o?0:1),h.$flipEl.on(h.transEndEventName,function(t){"fc-overlay-light"!==t.target.className&&"fc-overlay-dark"!==t.target.className&&h._ontransitionend(i)})},25)}},_ontransitionend:function(t){t.show(),this.$flipEl.off(this.transEndEventName).css({transition:"none",transform:"none"}).hide(),this.isAnimating=!1}};var s=function(t){e.console&&e.console.error(t)};t.fn.flipshow=function(e){if("string"==typeof e){var i=Array.prototype.slice.call(arguments,1);this.each(function(){var o=t.data(this,"flipshow");return o?t.isFunction(o[e])&&"_"!==e.charAt(0)?void o[e].apply(o,i):void s("no such method '"+e+"' for flipshow instance"):void s("cannot call methods on flipshow prior to initialization; attempted to call method '"+e+"'")})}else this.each(function(){var i=t.data(this,"flipshow");i?i._init():i=t.data(this,"flipshow",new t.Flipshow(e,this))});return this}}(jQuery,window),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(t){var e,i,o,n,s,r,a="Close",l="BeforeClose",h="AfterClose",c="BeforeAppend",d="MarkupParse",p="Open",u="Change",f="mfp",m="."+f,g="mfp-ready",v="mfp-removing",y="mfp-prevent-close",w=function(){},b=!!window.jQuery,x=t(window),z=function(t,i){e.ev.on(f+t+m,i)},C=function(e,i,o,n){var s=document.createElement("div");return s.className="mfp-"+e,o&&(s.innerHTML=o),n?i&&i.appendChild(s):(s=t(s),i&&s.appendTo(i)),s},_=function(i,o){e.ev.triggerHandler(f+i,o),e.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),e.st.callbacks[i]&&e.st.callbacks[i].apply(e,t.isArray(o)?o:[o]))},T=function(i){return i===r&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),r=i),e.currTemplate.closeBtn},S=function(){t.magnificPopup.instance||(e=new w,e.init(),t.magnificPopup.instance=e)},I=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1};w.prototype={constructor:w,init:function(){var i=navigator.appVersion;e.isLowIE=e.isIE8=document.all&&!document.addEventListener,e.isAndroid=/android/gi.test(i),e.isIOS=/iphone|ipad|ipod/gi.test(i),e.supportsTransition=I(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=t(document),e.popupsCache={}},open:function(i){var n;if(i.isObj===!1){e.items=i.items.toArray(),e.index=0;var r,a=i.items;for(n=0;n (t||x.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(i){return i.target===e.wrap[0]||t.contains(e.wrap[0],i.target)?void 0:(e._setFocus(),!1)},_parseMarkup:function(e,i,o){var n;o.data&&(i=t.extend(o.data,i)),_(d,[e,i,o]),t.each(i,function(i,o){if(void 0===o||o===!1)return!0;if(n=i.split("_"),n.length>1){var s=e.find(m+"-"+n[0]);if(s.length>0){var r=n[1];"replaceWith"===r?s[0]!==o[0]&&s.replaceWith(o):"img"===r?s.is("img")?s.attr("src",o):s.replaceWith(t("").attr("src",o).attr("class",s.attr("class"))):s.attr(n[1],o)}}else e.find(m+"-"+i).html(o)})},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e.scrollbarSize}},t.magnificPopup={instance:null,proto:w.prototype,modules:[],open:function(e,i){return S(),e=e?t.extend(!0,{},e):{},e.isObj=!0,e.index=i||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,i){i.options&&(t.magnificPopup.defaults[e]=i.options),t.extend(this.proto,i.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},t.fn.magnificPopup=function(i){S();var o=t(this);if("string"==typeof i)if("open"===i){var n,s=b?o.data("magnificPopup"):o[0].magnificPopup,r=parseInt(arguments[1],10)||0;s.items?n=s.items[r]:(n=o,s.delegate&&(n=n.find(s.delegate)),n=n.eq(r)),e._openClick({mfpEl:n},o,s)}else e.isOpen&&e[i].apply(e,Array.prototype.slice.call(arguments,1));else i=t.extend(!0,{},i),b?o.data("magnificPopup",i):o[0].magnificPopup=i,e.addGroup(o,i);return o};var E,k,A,W="inline",L=function(){A&&(k.after(A.addClass(E)).detach(),A=null)};t.magnificPopup.registerModule(W,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push(W),z(a+"."+W,function(){L()})},getInline:function(i,o){if(L(),i.src){var n=e.st.inline,s=t(i.src);if(s.length){var r=s[0].parentNode;r&&r.tagName&&(k||(E=n.hiddenClass,k=C(E),E="mfp-"+E),A=s.after(k).detach().removeClass(E)),e.updateStatus("ready")}else e.updateStatus("error",n.tNotFound),s=t(" ");return i.inlineElement=s,s}return e.updateStatus("ready"),e._parseMarkup(o,{},i),o}}});var O,P="ajax",B=function(){O&&t(document.body).removeClass(O)},D=function(){B(),e.req&&e.req.abort()};t.magnificPopup.registerModule(P,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){e.types.push(P),O=e.st.ajax.cursor,z(a+"."+P,D),z("BeforeChange."+P,D)},getAjax:function(i){O&&t(document.body).addClass(O),e.updateStatus("loading");var o=t.extend({url:i.src,success:function(o,n,s){var r={data:o,xhr:s};_("ParseAjax",r),e.appendContent(t(r.data),P),i.finished=!0,B(),e._setFocus(),setTimeout(function(){e.wrap.addClass(g)},16),e.updateStatus("ready"),_("AjaxContentAdded")},error:function(){B(),i.finished=i.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",i.src))}},e.st.ajax.settings);return e.req=t.ajax(o),""}}});var R,M=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var o=e.st.image.titleSrc;if(o){if(t.isFunction(o))return o.call(e,i);if(i.el)return i.el.attr(o)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var i=e.st.image,o=".image";e.types.push("image"),z(p+o,function(){"image"===e.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)}),z(a+o,function(){i.cursor&&t(document.body).removeClass(i.cursor),x.off("resize"+m)}),z("Resize"+o,e.resizeImage),e.isLowIE&&z("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var i=0;e.isLowIE&&(i=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-i)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,R&&clearInterval(R),t.isCheckingImgSize=!1,_("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var i=0,o=t.img[0],n=function(s){R&&clearInterval(R),R=setInterval(function(){return o.naturalWidth>0?void e._onImageHasSize(t):(i>200&&clearInterval(R),i++,void(3===i?n(10):40===i?n(50):100===i&&n(500)))},s)};n(1)},getImage:function(i,o){var n=0,s=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,_("ImageLoadComplete")):(n++,200>n?setTimeout(s,100):r()))},r=function(){i&&(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("error",a.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},a=e.st.image,l=o.find(".mfp-img");if(l.length){var h=document.createElement("img");h.className="mfp-img",i.el&&i.el.find("img").length&&(h.alt=i.el.find("img").attr("alt")),i.img=t(h).on("load.mfploader",s).on("error.mfploader",r),h.src=i.src,l.is("img")&&(i.img=i.img.clone()),h=i.img[0],h.naturalWidth>0?i.hasSize=!0:h.width||(i.hasSize=!1)}return e._parseMarkup(o,{title:M(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(R&&clearInterval(R),i.loadError?(o.addClass("mfp-loading"),e.updateStatus("error",a.tError.replace("%url%",i.src))):(o.removeClass("mfp-loading"),e.updateStatus("ready")),o):(e.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,o.addClass("mfp-loading"),e.findImageSize(i)),o)}}});var j,H=function(){return void 0===j&&(j=void 0!==document.createElement("p").style.MozTransform),j};t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,i=e.st.zoom,o=".zoom";if(i.enabled&&e.supportsTransition){var n,s,r=i.duration,h=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+i.duration/1e3+"s "+i.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},s="transition";return n["-webkit-"+s]=n["-moz-"+s]=n["-o-"+s]=n[s]=o,e.css(n),e},c=function(){e.content.css("visibility","visible")};z("BuildControls"+o,function(){if(e._allowZoom()){if(clearTimeout(n),e.content.css("visibility","hidden"),t=e._getItemToZoom(),!t)return void c();s=h(t),s.css(e._getOffset()),e.wrap.append(s),n=setTimeout(function(){s.css(e._getOffset(!0)),n=setTimeout(function(){c(),setTimeout(function(){s.remove(),t=s=null,_("ZoomAnimationEnded")},16)},r)},16)}}),z(l+o,function(){if(e._allowZoom()){if(clearTimeout(n),e.st.removalDelay=r,!t){if(t=e._getItemToZoom(),!t)return;s=h(t)}s.css(e._getOffset(!0)),e.wrap.append(s),e.content.css("visibility","hidden"),setTimeout(function(){s.css(e._getOffset())},16)}}),z(a+o,function(){e._allowZoom()&&(c(),s&&s.remove(),t=null)})}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return e.currItem.hasSize?e.currItem.img:!1},_getOffset:function(i){var o;o=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem);var n=o.offset(),s=parseInt(o.css("padding-top"),10),r=parseInt(o.css("padding-bottom"),10);n.top-=t(window).scrollTop()-s;var a={width:o.width(),height:(b?o.innerHeight():o[0].offsetHeight)-r-s};return H()?a["-moz-transform"]=a.transform="translate("+n.left+"px,"+n.top+"px)":(a.left=n.left,a.top=n.top),a}}});var $="iframe",F="//about:blank",N=function(t){if(e.currTemplate[$]){var i=e.currTemplate[$].find("iframe");i.length&&(t||(i[0].src=F),e.isIE8&&i.css("display",t?"block":"none"))}};t.magnificPopup.registerModule($,{options:{markup:'',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push($),z("BeforeChange",function(t,e,i){e!==i&&(e===$?N():i===$&&N(!0))}),z(a+"."+$,function(){N()})},getIframe:function(i,o){var n=i.src,s=e.st.iframe;t.each(s.patterns,function(){return n.indexOf(this.index)>-1?(this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1):void 0});var r={};return s.srcAction&&(r[s.srcAction]=n),e._parseMarkup(o,r,i),e.updateStatus("ready"),o}}});var q=function(t){var i=e.items.length;return t>i-1?t-i:0>t?i+t:t},Q=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=e.st.gallery,n=".mfp-gallery";return e.direction=!0,i&&i.enabled?(s+=" mfp-gallery",z(p+n,function(){i.navigateByImgClick&&e.wrap.on("click"+n,".mfp-img",function(){return e.items.length>1?(e.next(),!1):void 0}),o.on("keydown"+n,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),z("UpdateStatus"+n,function(t,i){i.text&&(i.text=Q(i.text,e.currItem.index,e.items.length))}),z(d+n,function(t,o,n,s){var r=e.items.length;n.counter=r>1?Q(i.tCounter,s.index,r):""}),z("BuildControls"+n,function(){if(e.items.length>1&&i.arrows&&!e.arrowLeft){var o=i.arrowMarkup,n=e.arrowLeft=t(o.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(y),s=e.arrowRight=t(o.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(y);n.click(function(){e.prev()}),s.click(function(){e.next()}),e.container.append(n.add(s))}}),z(u+n,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),void z(a+n,function(){o.off(n),e.wrap.off("click"+n),e.arrowRight=e.arrowLeft=null})):!1},next:function(){e.direction=!0,e.index=q(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=q(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,i=e.st.gallery.preload,o=Math.min(i[0],e.items.length),n=Math.min(i[1],e.items.length);for(t=1;t<=(e.direction?n:o);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?o:n);t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=q(i),!e.items[i].preloaded){var o=e.items[i];o.parsed||(o=e.parseEl(i)),_("LazyLoad",o),"image"===o.type&&(o.img=t('').on("load.mfploader",function(){o.hasSize=!0}).on("error.mfploader",function(){o.hasSize=!0,o.loadError=!0,_("LazyLoadError",o) }).attr("src",o.src)),o.preloaded=!0}}}});var U="retina";t.magnificPopup.registerModule(U,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,i=t.ratio;i=isNaN(i)?i():i,i>1&&(z("ImageHasSize."+U,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})}),z("ElementParse."+U,function(e,o){o.src=t.replaceSrc(o,i)}))}}}}),S()}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i),i}:t(jQuery)}(function(t){"use strict";var e="selectric",i="Input Items Open Disabled TempShow HideSelect Wrapper Hover Responsive Above Scroll Group GroupLabel",o=".sl",n={onChange:function(e){t(e).change()},maxHeight:300,keySearchTimeout:500,arrowButtonMarkup:'▾',disableOnMobile:!0,openOnHover:!1,hoverIntentTimeout:500,expandToItemText:!1,responsive:!1,preventWindowScroll:!0,inheritOriginalWidth:!1,allowWrap:!0,customClass:{prefix:e,camelCase:!1},optionsItemBuilder:"{text}",labelBuilder:"{text}"},s={add:function(t,e,i){this[t]||(this[t]={}),this[t][e]=i},remove:function(t,e){delete this[t][e]}},r={replaceDiacritics:function(t){for(var e="40-46 50-53 54-57 62-70 71-74 61 47 77".replace(/\d+/g,"\\3$&").split(" "),i=e.length;i--;)t=t.toLowerCase().replace(RegExp("["+e[i]+"]","g"),"aeiouncy".charAt(i));return t},format:function(t){var e=arguments;return(""+t).replace(/{(\d+|(\w+))}/g,function(t,i,o){return o&&e[1]?e[1][o]:e[i]})},nextEnabledItem:function(t,e){for(;t[e=(e+1)%t.length].disabled;);return e},previousEnabledItem:function(t,e){for(;t[e=(e>0?e:t.length)-1].disabled;);return e},toDash:function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},triggerCallback:function(i,o){var n=o.element,a=o.options["on"+i];t.isFunction(a)&&a.call(n,n,o),s[i]&&t.each(s[i],function(){this.call(n,n,o)}),t(n).trigger(e+"-"+r.toDash(i),o)}},a=t(document),l=t(window),h=function(s,h){function c(e){if(D.options=t.extend(!0,{},n,D.options,e),D.classes={},D.element=s,r.triggerCallback("BeforeInit",D),D.options.disableOnMobile&&H)return void(D.disableOnMobile=!0);b(!0);var o=D.options.customClass,a=i.split(" "),l=R.width();t.each(a,function(t,e){var i=o.prefix+e;D.classes[e.toLowerCase()]=o.camelCase?i:r.toDash(i)}),x=t("",{"class":D.classes.input,readonly:H}),z=t("",{"class":D.classes.items,tabindex:-1}),C=t("",{"class":D.classes.scroll}),_=t("",{"class":o.prefix,html:D.options.arrowButtonMarkup}),T=t(''),S=R.wrap("").parent().append(_.prepend(T),z,x),P={open:m,close:v,destroy:b,refresh:p,init:c},R.on(P).wrap(''),t.extend(D,P),B=D.options.labelBuilder,D.options.inheritOriginalWidth&&l>0&&S.width(l),d()}function d(){D.items=[];var e=R.children(),i="",n=R.find("option"),s=n.index(n.filter(":selected")),a=0;k=E=~s?s:0,(O=e.length)&&(e.each(function(){function e(){var e=t(this),o=e.html(),n=e.prop("disabled"),s=D.options.optionsItemBuilder;D.items[a]={element:e,value:e.val(),text:o,slug:r.replaceDiacritics(o),disabled:n},i+=r.format('
")),T.html(t.isFunction(B)?B(D.items[k]):r.format(B,D.items[k]))),_.add(R).add(S).add(x).off(o),S.prop("class",[D.classes.wrapper,R.prop("class").replace(/\S+/g,D.options.customClass.prefix+"-$&"),D.options.responsive?D.classes.responsive:""].join(" ")),R.prop("disabled")?(S.addClass(D.classes.disabled),x.prop("disabled",!0)):(j=!0,S.removeClass(D.classes.disabled).on("mouseenter"+o+" mouseleave"+o,function(e){t(this).toggleClass(D.classes.hover),D.options.openOnHover&&(clearTimeout(D.closeTimer),"mouseleave"==e.type?D.closeTimer=setTimeout(v,D.options.hoverIntentTimeout):m())}),_.on("click"+o,function(t){M?v():m(t)}),x.prop({tabindex:$,disabled:!1}).on("keypress"+o,u).on("keydown"+o,function(t){u(t),clearTimeout(D.resetStr),D.resetStr=setTimeout(function(){x.val("")},D.options.keySearchTimeout);var e=t.keyCode||t.which;if(e>36&&41>e){if(!D.options.allowWrap&&(39>e&&0==E||e>38&&E+1==D.items.length))return;y(r[(39>e?"previous":"next")+"EnabledItem"](D.items,E))}}).on("focusin"+o,function(t){M||m(t)}).on("oninput"in x[0]?"input":"keyup",function(){x.val().length&&t.each(D.items,function(t,e){return RegExp("^"+x.val(),"i").test(e.slug)&&!e.disabled?(y(t),!1):void 0})}),R.prop("tabindex",!1),I=t("li",z.removeAttr("style")).on({mousedown:function(t){t.preventDefault(),t.stopPropagation()},click:function(){return y(t(this).data("index"),!0),!1}}).filter("[data-index]")),r.triggerCallback("Init",D)}function p(){r.triggerCallback("Refresh",D),d()}function u(t){var e=t.keyCode||t.which;13==e&&t.preventDefault(),/^(9|13|27)$/.test(e)&&(t.stopPropagation(),y(E,!0))}function f(){var t=z.closest(":visible").children(":hidden").addClass(D.classes.tempshow),e=D.options.maxHeight,i=z.outerWidth(),o=_.outerWidth()-(i-z.width());!D.options.expandToItemText||o>i?L=o:(z.css("overflow","scroll"),S.width(9e4),L=z.width(),z.css("overflow",""),S.width("")),z.width(L).height()>e&&z.height(e),t.removeClass(D.classes.tempshow)}function m(i){r.triggerCallback("BeforeOpen",D),i&&(i.preventDefault(),i.stopPropagation()),j&&(f(),t("."+D.classes.hideselect,"."+D.classes.open).children()[e]("close"),M=!0,A=z.outerHeight(),W=z.height(),S.addClass(D.classes.open),x.val(""),i&&"focusin"!==i.type&&x.focus(),a.on("click"+o,v).on("scroll"+o,g),g(),D.options.preventWindowScroll&&a.on("mousewheel"+o+" DOMMouseScroll"+o,"."+D.classes.scroll,function(e){var i=e.originalEvent,o=t(this).scrollTop(),n=0;"detail"in i&&(n=-1*i.detail),"wheelDelta"in i&&(n=i.wheelDelta),"wheelDeltaY"in i&&(n=i.wheelDeltaY),"deltaY"in i&&(n=-1*i.deltaY),(o==this.scrollHeight-W&&0>n||0==o&&n>0)&&e.preventDefault()}),w(E),r.triggerCallback("Open",D))}function g(){var t=l.scrollTop(),e=l.height(),i=S.offset().top,o=S.outerHeight(),n=t+e>=i+o+A,s=i-A>t,r=!n&&s;S.toggleClass(D.classes.above,r)}function v(){if(r.triggerCallback("BeforeClose",D),k!=E){r.triggerCallback("BeforeChange",D);var e=D.items[E].text;R.prop("selectedIndex",k=E).data("value",e),T.html(t.isFunction(B)?B(D.items[E]):r.format(B,D.items[E])),r.triggerCallback("Change",D)}a.off(o),S.removeClass(D.classes.open),M=!1,r.triggerCallback("Close",D)}function y(t,e){void 0!=t&&(D.items[t].disabled||(I.removeClass("selected").eq(E=t).addClass("selected"),w(t),e&&v()))}function w(t){var e=I.eq(t).outerHeight(),i=I[t].offsetTop,o=C.scrollTop(),n=i+2*e;C.scrollTop(n>o+A?n-A:o>i-e?i-e:o)}function b(t){j&&(z.add(_).add(x).remove(),!t&&R.removeData(e).removeData("value"),R.prop("tabindex",$).off(o).off(P).unwrap().unwrap(),j=!1)}var x,z,C,_,T,S,I,E,k,A,W,L,O,P,B,D=this,R=t(s),M=!1,j=!1,H=/android|ip(hone|od|ad)/i.test(navigator.userAgent),$=R.prop("tabindex");c(h)};t.fn[e]=function(i){return this.each(function(){var o=t.data(this,e);o&&!o.disableOnMobile?""+i===i&&o[i]?o[i]():o.init(i):t.data(this,e,new h(this,i))})},t.fn[e].hooks=s});}catch(e){} try{ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){return function(){function b(a,b,c){return[parseFloat(a[0])*(n.test(a[0])?b/100:1),parseFloat(a[1])*(n.test(a[1])?c/100:1)]}function c(b,c){return parseInt(a.css(b,c),10)||0}function d(b){var c=b[0];return 9===c.nodeType?{width:b.width(),height:b.height(),offset:{top:0,left:0}}:a.isWindow(c)?{width:b.width(),height:b.height(),offset:{top:b.scrollTop(),left:b.scrollLeft()}}:c.preventDefault?{width:0,height:0,offset:{top:c.pageY,left:c.pageX}}:{width:b.outerWidth(),height:b.outerHeight(),offset:b.offset()}}a.ui=a.ui||{};var e,f,g=Math.max,h=Math.abs,i=Math.round,j=/left|center|right/,k=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,m=/^\w+/,n=/%$/,o=a.fn.position;a.position={scrollbarWidth:function(){if(void 0!==e)return e;var b,c,d=a(" "),f=d.children()[0];return a("body").append(d),b=f.offsetWidth,d.css("overflow","scroll"),c=f.offsetWidth,b===c&&(c=d[0].clientWidth),d.remove(),e=b-c},getScrollInfo:function(b){var c=b.isWindow||b.isDocument?"":b.element.css("overflow-x"),d=b.isWindow||b.isDocument?"":b.element.css("overflow-y"),e="scroll"===c||"auto"===c&&b.width- {3}
',a,t.trim([a==k?"selected":"",a==O-1?"last":"",n?"disabled":""].join(" ")),t.isFunction(s)?s(D.items[a],e,a):r.format(s,D.items[a])),a++}var o=t(this);if(o.is("optgroup")){var n=o.prop("disabled"),s=o.children();i+=r.format('"}else e.call(o)}),z.append(C.html(i+"
- {3}
',t.trim([D.classes.group,n?"disabled":"",o.prop("class")].join(" ")),D.classes.grouplabel,o.prop("label")),n&&s.prop("disabled",!0),s.each(e),i+="0?"right":"center",vertical:f<0?"top":d>0?"bottom":"middle"};p g(h(d),h(f))?i.important="horizontal":i.important="vertical",e.using.call(this,a,i)}),k.offset(a.extend(B,{using:j}))})},a.ui.position={fit:{left:function(a,b){var c,d=b.within,e=d.isWindow?d.scrollLeft:d.offset.left,f=d.width,h=a.left-b.collisionPosition.marginLeft,i=e-h,j=h+b.collisionWidth-f-e;b.collisionWidth>f?i>0&&j<=0?(c=a.left+i+b.collisionWidth-f-e,a.left+=i-c):j>0&&i<=0?a.left=e:i>j?a.left=e+f-b.collisionWidth:a.left=e:i>0?a.left+=i:j>0?a.left-=j:a.left=g(a.left-h,a.left)},top:function(a,b){var c,d=b.within,e=d.isWindow?d.scrollTop:d.offset.top,f=b.within.height,h=a.top-b.collisionPosition.marginTop,i=e-h,j=h+b.collisionHeight-f-e;b.collisionHeight>f?i>0&&j<=0?(c=a.top+i+b.collisionHeight-f-e,a.top+=i-c):j>0&&i<=0?a.top=e:i>j?a.top=e+f-b.collisionHeight:a.top=e:i>0?a.top+=i:j>0?a.top-=j:a.top=g(a.top-h,a.top)}},flip:{left:function(a,b){var c,d,e=b.within,f=e.offset.left+e.scrollLeft,g=e.width,i=e.isWindow?e.scrollLeft:e.offset.left,j=a.left-b.collisionPosition.marginLeft,k=j-i,l=j+b.collisionWidth-g-i,m="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,n="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,o=-2*b.offset[0];k<0?(c=a.left+m+n+o+b.collisionWidth-g-f,(c<0||c 0&&(d=a.left-b.collisionPosition.marginLeft+m+n+o-i,(d>0||h(d) 0&&(c=a.top-b.collisionPosition.marginTop+n+o+p-i,(c>0||h(c) 10&&e<11,b.innerHTML="",c.removeChild(b)}()}(),a.ui.position});}catch(e){} try{(function(t,e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else if(typeof exports==="object"){module.exports=e(require("jquery"))}else{e(t.jQuery)}})(this,function(t){t.transit={version:"0.9.11",propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:true,useTransitionEnd:false};var e=document.createElement("div");var n={};function i(t){if(t in e.style)return t;var n=["Moz","Webkit","O","ms"];var i=t.charAt(0).toUpperCase()+t.substr(1);for(var r=0;r -1;n.transition=i("transition");n.transitionDelay=i("transitionDelay");n.transform=i("transform");n.transformOrigin=i("transformOrigin");n.filter=i("Filter");n.transform3d=r();var a={transition:"transitionend",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"};var o=n.transitionEnd=a[n.transition]||null;for(var u in n){if(n.hasOwnProperty(u)&&typeof t.support[u]==="undefined"){t.support[u]=n[u]}}e=null;t.cssEase={_default:"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeInCubic:"cubic-bezier(.550,.055,.675,.190)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};t.cssHooks["transit:transform"]={get:function(e){return t(e).data("transform")||new f},set:function(e,i){var r=i;if(!(r instanceof f)){r=new f(r)}if(n.transform==="WebkitTransform"&&!s){e.style[n.transform]=r.toString(true)}else{e.style[n.transform]=r.toString()}t(e).data("transform",r)}};t.cssHooks.transform={set:t.cssHooks["transit:transform"].set};t.cssHooks.filter={get:function(t){return t.style[n.filter]},set:function(t,e){t.style[n.filter]=e}};if(t.fn.jquery<"1.8"){t.cssHooks.transformOrigin={get:function(t){return t.style[n.transformOrigin]},set:function(t,e){t.style[n.transformOrigin]=e}};t.cssHooks.transition={get:function(t){return t.style[n.transition]},set:function(t,e){t.style[n.transition]=e}}}p("scale");p("scaleX");p("scaleY");p("translate");p("rotate");p("rotateX");p("rotateY");p("rotate3d");p("perspective");p("skewX");p("skewY");p("x",true);p("y",true);function f(t){if(typeof t==="string"){this.parse(t)}return this}f.prototype={setFromString:function(t,e){var n=typeof e==="string"?e.split(","):e.constructor===Array?e:[e];n.unshift(t);f.prototype.set.apply(this,n)},set:function(t){var e=Array.prototype.slice.apply(arguments,[1]);if(this.setter[t]){this.setter[t].apply(this,e)}else{this[t]=e.join(",")}},get:function(t){if(this.getter[t]){return this.getter[t].apply(this)}else{return this[t]||0}},setter:{rotate:function(t){this.rotate=y(t,"deg")},rotateX:function(t){this.rotateX=y(t,"deg")},rotateY:function(t){this.rotateY=y(t,"deg")},scale:function(t,e){if(e===undefined){e=t}this.scale=t+","+e},skewX:function(t){this.skewX=y(t,"deg")},skewY:function(t){this.skewY=y(t,"deg")},perspective:function(t){this.perspective=y(t,"px")},x:function(t){this.set("translate",t,null)},y:function(t){this.set("translate",null,t)},translate:function(t,e){if(this._translateX===undefined){this._translateX=0}if(this._translateY===undefined){this._translateY=0}if(t!==null&&t!==undefined){this._translateX=y(t,"px")}if(e!==null&&e!==undefined){this._translateY=y(e,"px")}this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var t=(this.scale||"1,1").split(",");if(t[0]){t[0]=parseFloat(t[0])}if(t[1]){t[1]=parseFloat(t[1])}return t[0]===t[1]?t[0]:t},rotate3d:function(){var t=(this.rotate3d||"0,0,0,0deg").split(",");for(var e=0;e<=3;++e){if(t[e]){t[e]=parseFloat(t[e])}}if(t[3]){t[3]=y(t[3],"deg")}return t}},parse:function(t){var e=this;t.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(t,n,i){e.setFromString(n,i)})},toString:function(t){var e=[];for(var i in this){if(this.hasOwnProperty(i)){if(!n.transform3d&&(i==="rotateX"||i==="rotateY"||i==="perspective"||i==="transformOrigin")){continue}if(i[0]!=="_"){if(t&&i==="scale"){e.push(i+"3d("+this[i]+",1)")}else if(t&&i==="translate"){e.push(i+"3d("+this[i]+",0)")}else{e.push(i+"("+this[i]+")")}}}}return e.join(" ")}};function c(t,e,n){if(e===true){t.queue(n)}else if(e){t.queue(e,n)}else{t.each(function(){n.call(this)})}}function l(e){var i=[];t.each(e,function(e){e=t.camelCase(e);e=t.transit.propertyMap[e]||t.cssProps[e]||e;e=h(e);if(n[e])e=h(n[e]);if(t.inArray(e,i)===-1){i.push(e)}});return i}function d(e,n,i,r){var s=l(e);if(t.cssEase[i]){i=t.cssEase[i]}var a=""+b(n)+" "+i;if(parseInt(r,10)>0){a+=" "+b(r)}var o=[];t.each(s,function(t,e){o.push(e+" "+a)});return o.join(", ")}t.fn.transition=t.fn.transit=function(e,i,r,s){var a=this;var u=0;var f=true;var l=jQuery.extend(true,{},e);if(typeof i==="function"){s=i;i=undefined}if(typeof i==="object"){r=i.easing;u=i.delay||0;f=typeof i.queue==="undefined"?true:i.queue;s=i.complete;i=i.duration}if(typeof r==="function"){s=r;r=undefined}if(typeof l.easing!=="undefined"){r=l.easing;delete l.easing}if(typeof l.duration!=="undefined"){i=l.duration;delete l.duration}if(typeof l.complete!=="undefined"){s=l.complete;delete l.complete}if(typeof l.queue!=="undefined"){f=l.queue;delete l.queue}if(typeof l.delay!=="undefined"){u=l.delay;delete l.delay}if(typeof i==="undefined"){i=t.fx.speeds._default}if(typeof r==="undefined"){r=t.cssEase._default}i=b(i);var p=d(l,i,r,u);var h=t.transit.enabled&&n.transition;var y=h?parseInt(i,10)+parseInt(u,10):0;if(y===0){var g=function(t){a.css(l);if(s){s.apply(a)}if(t){t()}};c(a,f,g);return a}var m={};var v=function(i){var r=false;var u=function(){if(r){a.unbind(o,u)}if(y>0){a.each(function(){this.style[n.transition]=m[this]||null})}if(typeof s==="function"){s.apply(a)}if(typeof i==="function"){i()}};if(y>0&&o&&t.transit.useTransitionEnd){r=true;a.bind(o,u)}else{window.setTimeout(u,y)}a.each(function(){if(y>0){this.style[n.transition]=p}t(this).css(e)})};var z=function(t){this.offsetWidth;v(t)};c(a,f,z);return this};function p(e,i){if(!i){t.cssNumber[e]=true}t.transit.propertyMap[e]=n.transform;t.cssHooks[e]={get:function(n){var i=t(n).css("transit:transform");return i.get(e)},set:function(n,i){var r=t(n).css("transit:transform");r.setFromString(e,i);t(n).css({"transit:transform":r})}}}function h(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function y(t,e){if(typeof t==="string"&&!t.match(/^[\-0-9\.]+$/)){return t}else{return""+t+e}}function b(e){var n=e;if(typeof n==="string"&&!n.match(/^[\-0-9\.]+/)){n=t.fx.speeds[n]||t.fx.speeds._default}return y(n,"ms")}t.transit.getTransitionValue=d;return t});}catch(e){} try{(function(jQuery){if(!jQuery.isFunction(jQuery.fn.on)){jQuery.fn.on=function(types,sel,fn){return this.delegate(sel,types,fn);};jQuery.fn.off=function(types,sel,fn){return this.undelegate(sel,types,fn);};} if(!jQuery.support.transition) jQuery.fn.transition=jQuery.fn.animate;jQuery.fn.emodal=function(method){if(jQuery.fn.emodal.methods[method]){return jQuery.fn.emodal.methods[method].apply(this,Array.prototype.slice.call(arguments,1));}else if(typeof method==='object'||!method){return jQuery.fn.emodal.methods.init.apply(this,arguments);}else{jQuery.error('Method '+method+' does not exist on jQuery.fn.emodal');}};jQuery.fn.emodal.methods={init:function(options){return this.each(function(){var $this=jQuery(this);var settings=jQuery.extend(true,{},jQuery.fn.emodal.defaults,$this.data('emodal'),options);if(!$this.parent().is('body')) $this.appendTo('body');if(!jQuery('#'+settings.overlay.attr.id).length) jQuery(' ').attr(settings.overlay.attr).appendTo('body');jQuery(window).on('resize',function(){if($this.hasClass('active')) jQuery.fn.emodal.utilities.throttle(setTimeout(function(){$this.emodal('reposition');},25),500,false);});$this.data('emodal',settings).on('emodalBeforeOpen.hide_modal',function(e){jQuery(this).css({visibility:"visible"}).hide().addClass(settings.container.active_class);if(!settings.meta.display.stackable){$this.emodal('close_all');}}).on('emodalAfterClose.close_overlay',function(e){$overlay=jQuery('#'+settings.overlay.attr.id);if($overlay.length&&$overlay.is(":visible")){$overlay.fadeOut(settings.close.close_speed);}}).on('emodalAfterClose.reset_videos',function(e){jQuery('iframe',$this).filter('[src*="youtube"],[src*="vimeo"]').each(function(){var src=jQuery(this).attr('src');jQuery(this).attr('src','').attr('src',src);});}).on('emodalBeforeOpen.setup_close',function(){$this.emodal('setup_close');}).on('emodalBeforeOpen.retheme',function(){$this.emodal('retheme');}).on('emodalBeforeOpen.reposition',function(){$this.emodal('reposition');}).trigger('emodalInit');return this;});},setup_close:function(){var $this=jQuery(this),settings=$this.data('emodal'),$overlay=jQuery('#'+settings.overlay.attr.id),$close=jQuery('.'+settings.close.attr.class,$this);$close.off('click.emodal').on("click.emodal",function(e){e.preventDefault();e.stopPropagation();$this.emodal('close');});if(settings.meta.close.esc_press) jQuery(window).off('keyup.emodal').on('keyup.emodal',function(e){if(e.keyCode==27) $this.emodal('close');});if(settings.meta.close.overlay_click) $overlay.off('click.emodal').on('click.emodal',function(e){e.preventDefault();e.stopPropagation();$this.emodal('close');});$this.on('emodalAfterClose',function(){jQuery(window).off('keyup.emodal');$overlay.off('click.emodal');$close.off('click.emodal');}).trigger('emodalSetupClose');},open:function(callback){var $this=jQuery(this);var settings=$this.data('emodal');$this.trigger('emodalBeforeOpen').emodal('animate',settings.meta.display.animation.type,function(){$this.trigger('emodalAfterOpen');if(callback!==undefined)callback();});return this;},close:function(){return this.each(function(){var $this=jQuery(this),settings=$this.data('emodal');$this.trigger('emodalBeforeClose').removeClass('active').fadeOut(settings.close.close_speed,function(){$this.trigger('emodalAfterClose');});return this;});},close_all:function(){var settings=jQuery(this).data('emodal');jQuery('.'+settings.container.attr.class).removeClass('active').hide(0);return this;},reposition:function(callback){var $this=jQuery(this);$this.trigger('emodalBeforeReposition');var settings=$this.data('emodal');var location=settings.meta.display.location;var position=settings.meta.display.position;var reposition={my:"",at:""};if(location.indexOf('left')>=0)reposition={my:reposition.my+" left"+(position.left!==0?"+"+position.left:""),at:reposition.at+" left"};if(location.indexOf('right')>=0)reposition={my:reposition.my+" right"+(position.right!==0?"-"+position.right:""),at:reposition.at+" right"};if(location.indexOf('center')>=0){if(location=='center')reposition={my:"center",at:"center"};else reposition={my:reposition.my+" center",at:reposition.at+" center"};} if(location.indexOf('top')>=0)reposition={my:reposition.my+" top"+(position.top!==0?"+"+position.top:""),at:reposition.at+" top"};if(location.indexOf('bottom')>=0)reposition={my:reposition.my+" bottom"+(position.bottom!==0?"-"+position.bottom:""),at:reposition.at+" bottom"};reposition.my=jQuery.trim(reposition.my);reposition.at=jQuery.trim(reposition.at);reposition.of=window;reposition.collision='fit';reposition.using=typeof(callback)=="function"?callback:jQuery.fn.emodal.callbacks.reposition_using;var opacity=false;if($this.is(':hidden')){opacity=$this.css("opacity");$this.css({opacity:0}).show();} if(position.fixed) $this.addClass('fixed');else $this.removeClass('fixed');if(settings.meta.display.size=='custom'){$this.css({width:settings.meta.display.custom_width+settings.meta.display.custom_width_unit,height:settings.meta.display.custom_height_auto?'auto':settings.meta.display.custom_height+settings.meta.display.custom_height_unit});} $this.addClass('custom-position').position(reposition).trigger('emodalAfterReposition');if(opacity){$this.css({opacity:opacity}).hide();} return this;},retheme:function(theme){var $this=jQuery(this);$this.trigger('emodalBeforeRetheme');var settings=$this.data('emodal'),$overlay=jQuery('#'+settings.overlay.attr.id),$container=$this,$title=jQuery('> .'+settings.title.attr.class,$container),$content=jQuery('> .'+settings.content.attr.class,$container),$close=jQuery('> .'+settings.close.attr.class,$container);if(theme===undefined){theme=jQuery.fn.emodal.themes[settings.theme_id];if(theme===undefined){theme=jQuery.fn.emodal.themes[1];}} $overlay.removeAttr('style').css({backgroundColor:jQuery.fn.emodal.utilities.convert_hex(theme.overlay.background.color,theme.overlay.background.opacity)});var container_inset=theme.container.boxshadow.inset=='yes'?'inset ':'';$container.css({padding:theme.container.padding+'px',backgroundColor:jQuery.fn.emodal.utilities.convert_hex(theme.container.background.color,theme.container.background.opacity),borderStyle:theme.container.border.style,borderColor:theme.container.border.color,borderWidth:theme.container.border.width+'px',borderRadius:theme.container.border.radius+'px',boxShadow:container_inset+theme.container.boxshadow.horizontal+'px '+theme.container.boxshadow.vertical+'px '+theme.container.boxshadow.blur+'px '+theme.container.boxshadow.spread+'px '+jQuery.fn.emodal.utilities.convert_hex(theme.container.boxshadow.color,theme.container.boxshadow.opacity)});$title.css({color:theme.title.font.color,fontSize:theme.title.font.size+'px',fontFamily:theme.title.font.family,textAlign:theme.title.text.align,textShadow:theme.title.textshadow.horizontal+'px '+theme.title.textshadow.vertical+'px '+theme.title.textshadow.blur+'px '+jQuery.fn.emodal.utilities.convert_hex(theme.title.textshadow.color,theme.title.textshadow.opacity)});$content.css({color:theme.content.font.color,fontFamily:theme.content.font.family});jQuery('p, label',$content).css({color:theme.content.font.color,fontFamily:theme.content.font.family});var close_inset=theme.close.boxshadow.inset=='yes'?'inset ':'';$close.html(theme.close.text).css({padding:theme.close.padding+'px',backgroundColor:jQuery.fn.emodal.utilities.convert_hex(theme.close.background.color,theme.close.background.opacity),color:theme.close.font.color,fontSize:theme.close.font.size+'px',fontFamily:theme.close.font.family,borderStyle:theme.close.border.style,borderColor:theme.close.border.color,borderWidth:theme.close.border.width+'px',borderRadius:theme.close.border.radius+'px',boxShadow:close_inset+theme.close.boxshadow.horizontal+'px '+theme.close.boxshadow.vertical+'px '+theme.close.boxshadow.blur+'px '+theme.close.boxshadow.spread+'px '+jQuery.fn.emodal.utilities.convert_hex(theme.close.boxshadow.color,theme.close.boxshadow.opacity),textShadow:theme.close.textshadow.horizontal+'px '+theme.close.textshadow.vertical+'px '+theme.close.textshadow.blur+'px '+jQuery.fn.emodal.utilities.convert_hex(theme.close.textshadow.color,theme.close.textshadow.opacity)});switch(theme.close.location){case"topleft":$close.css({top:theme.close.position.top+'px',left:theme.close.position.left+'px'});break;case"topright":$close.css({top:theme.close.position.top+'px',right:theme.close.position.right+'px'});break;case"bottomleft":$close.css({bottom:theme.close.position.bottom+'px',left:theme.close.position.left+'px'});break;case"bottomright":$close.css({bottom:theme.close.position.bottom+'px',right:theme.close.position.right+'px'});break;} $this.trigger('emodalAfterRetheme',[theme]);return this;},animate_overlay:function(style,duration,callback){var $this=jQuery(this);var settings=$this.data('emodal');if(settings.meta.display.overlay_disabled){callback();}else{if(jQuery.fn.emodal.overlay_animations[style]) return jQuery.fn.emodal.overlay_animations[style].apply(this,Array.prototype.slice.call(arguments,1));else jQuery.error('Animation style '+jQuery.fn.emodal.overlay_animations+' does not exist.');} return this;},animate:function(style,callback){if(jQuery.fn.emodal.animations[style]) return jQuery.fn.emodal.animations[style].apply(this,Array.prototype.slice.call(arguments,1));else jQuery.error('Animation style '+jQuery.fn.emodal.animations+' does not exist.');return this;}};jQuery.fn.emodal.callbacks={reposition_using:function(position){jQuery(this).css(position);}};jQuery.fn.emodal.utilities={convert_hex:function(hex,opacity){hex=hex.replace('#','');r=parseInt(hex.substring(0,2),16);g=parseInt(hex.substring(2,4),16);b=parseInt(hex.substring(4,6),16);result='rgba('+r+','+g+','+b+','+opacity/100+')';return result;},debounce:function(callback,threshold){var timeout;return function(){var context=this,params=arguments;window.clearTimeout(timeout);timeout=window.setTimeout(function(){callback.apply(context,params);},threshold);};},throttle:function(callback,threshold){var suppress=false;var clear=function(){suppress=false;};return function(){if(!suppress){callback.apply(this,arguments);window.setTimeout(clear,threshold);suppress=true;};}}};jQuery.fn.emodal.utilies=jQuery.fn.emodal.utilities;jQuery.fn.emodal.defaults={meta:{display:{stackable:0,overlay_disabled:0,size:'medium',custom_width:'',custom_width_unit:'%',custom_height:'',custom_height_unit:'em',custom_height_auto:1,location:'center top',position:{top:100,left:0,bottom:0,right:0,fixed:0},animation:{type:'fade',speed:350,origin:'center top'}},close:{overlay_click:0,esc_press:1}},container:{active_class:'active',attr:{class:"emodal"}},title:{attr:{class:"emodal-title"}},content:{attr:{class:"emodal-content"}},close:{close_speed:0,attr:{class:"emodal-close"}},overlay:{attr:{id:"emodal-overlay",class:"emodal-overlay"}}};jQuery.fn.emodal.themes=emodal_themes;jQuery.fn.emodal.overlay_animations={none:function(duration,callback){var $this=jQuery(this);var settings=$this.data('emodal');jQuery('#'+settings.overlay.attr.id).show(duration,callback);},fade:function(duration,callback){var $this=jQuery(this);var settings=$this.data('emodal');jQuery('#'+settings.overlay.attr.id).fadeIn(duration,callback);},slide:function(duration,callback){var $this=jQuery(this);var settings=$this.data('emodal');jQuery('#'+settings.overlay.attr.id).slideDown(duration,callback);}};jQuery.fn.emodal.animations={none:function(callback){var $this=jQuery(this);var settings=$this.data('emodal');$this.emodal('animate_overlay','none',0,function(){$this.show();if(callback!==undefined)callback();});return this;},slide:function(callback){var $this=jQuery(this).show(0).css({opacity:0});var settings=$this.data('emodal');var speed=settings.meta.display.animation.speed;var origin=settings.meta.display.animation.origin;var start={my:"",at:""};switch(origin){case'top':start={my:"left+"+$this.offset().left+" bottom",at:"left top"};break;case'bottom':start={my:"left+"+$this.offset().left+" top",at:"left bottom"};break;case'left':start={my:"right top+"+$this.offset().top,at:"left top"};break;case'right':start={my:"left top+"+$this.offset().top,at:"right top"};break;default:if(origin.indexOf('left')>=0)start={my:start.my+" right",at:start.at+" left"};if(origin.indexOf('right')>=0)start={my:start.my+" left",at:start.at+" right"};if(origin.indexOf('center')>=0)start={my:start.my+" center",at:start.at+" center"};if(origin.indexOf('top')>=0)start={my:start.my+" bottom",at:start.at+" top"};if(origin.indexOf('bottom')>=0)start={my:start.my+" top",at:start.at+" bottom"};start.my=jQuery.trim(start.my);start.at=jQuery.trim(start.at);break;} start.of=window;start.collision='none';jQuery('html').css('overflow-x','hidden');$this.position(start).css({opacity:1});$this.emodal('animate_overlay','fade',speed*0.25,function(){$this.emodal('reposition',function(position){position.opacity=1;$this.transition(position,speed*0.75,function(){jQuery('html').css('overflow-x','inherit');if(callback!==undefined)callback();});});});return this;},fade:function(callback){var $this=jQuery(this);var settings=$this.data('emodal');var speed=settings.meta.display.animation.speed/2;$this.emodal('animate_overlay','fade',speed,function(){$this.fadeIn(speed,function(){if(callback!==undefined)callback();});});return this;},fadeAndSlide:function(callback){var $this=jQuery(this).show(0).css({opacity:0});var settings=$this.data('emodal');var speed=settings.meta.display.animation.speed;var origin=settings.meta.display.animation.origin;var start={my:"",at:""};switch(origin){case'top':start={my:"left+"+$this.offset().left+" bottom",at:"left top"};break;case'bottom':start={my:"left+"+$this.offset().left+" top",at:"left bottom"};break;case'left':start={my:"right top+"+$this.offset().top,at:"left top"};break;case'right':start={my:"left top+"+$this.offset().top,at:"right top"};break;default:if(origin.indexOf('left')>=0)start={my:start.my+" right",at:start.at+" left"};if(origin.indexOf('right')>=0)start={my:start.my+" left",at:start.at+" right"};if(origin.indexOf('center')>=0)start={my:start.my+" center",at:start.at+" center"};if(origin.indexOf('top')>=0)start={my:start.my+" bottom",at:start.at+" top"};if(origin.indexOf('bottom')>=0)start={my:start.my+" top",at:start.at+" bottom"};start.my=jQuery.trim(start.my);start.at=jQuery.trim(start.at);break;} start.of=window;start.collision='none';jQuery('html').css('overflow-x','hidden');$this.position(start);$this.emodal('animate_overlay','fade',speed*0.25,function(){$this.emodal('reposition',function(position){position.opacity=1;$this.transition(position,speed*0.75,function(){jQuery('html').css('overflow-x','inherit');if(callback!==undefined)callback();});});});return this;},grow:function(callback){var $this=jQuery(this);var settings=$this.data('emodal');var speed=settings.meta.display.animation.speed;var origin=settings.meta.display.animation.origin;$this.css({transformOrigin:origin,opacity:0}).show();$this.emodal('animate_overlay','fade',speed*0.25,function(){$this.emodal('reposition',function(position){position.scale=1;position.duration=speed*0.75;$this.css({scale:0,opacity:1}).transition(position);if(callback!==undefined)callback();});});return this;},growAndSlide:function(callback){var $this=jQuery(this).css({opacity:0}).show();var settings=$this.data('emodal');var speed=settings.meta.display.animation.speed;var origin=settings.meta.display.animation.origin;var start={my:"",at:""};switch(origin){case'top':start={my:"left+"+$this.offset().left+" bottom",at:"left top"};break;case'bottom':start={my:"left+"+$this.offset().left+" top",at:"left bottom"};break;case'left':start={my:"right top+"+$this.offset().top,at:"left top"};break;case'right':start={my:"left top+"+$this.offset().top,at:"right top"};break;default:if(origin.indexOf('left')>=0)start={my:start.my+" right",at:start.at+" left"};if(origin.indexOf('right')>=0)start={my:start.my+" left",at:start.at+" right"};if(origin.indexOf('center')>=0)start={my:start.my+" center",at:start.at+" center"};if(origin.indexOf('top')>=0)start={my:start.my+" bottom",at:start.at+" top"};if(origin.indexOf('bottom')>=0)start={my:start.my+" top",at:start.at+" bottom"};start.my=jQuery.trim(start.my);start.at=jQuery.trim(start.at);break;} start.of=window;start.collision='none';jQuery('html').css('overflow-x','hidden');$this.position(start).css({opacity:origin=='center center'?0:1,transformOrigin:origin});$this.emodal('animate_overlay','fade',speed*0.25,function(){$this.emodal('reposition',function(position){position.scale=1;position.opacity=1;position.duration=speed*0.75;$this.css({scale:0}).transition(position,function(){jQuery('html').css('overflow-x','inherit');});if(callback!==undefined)callback();});});return this;}};jQuery('.emodal').css({visibility:"visible"}).hide();jQuery(document).ready(function(){jQuery('.emodal').emodal().each(function(){var $this=jQuery(this);jQuery(document).on('click','.'+$this.attr('id'),function(e){e.preventDefault();e.stopPropagation();$this.emodal('open');});jQuery('.'+$this.attr('id')).css('cursor','pointer');});});}(jQuery));}catch(e){} try{ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(e){"use strict";function t(t){var r=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(r))}function r(t){var r=t.target,a=e(r);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;r=n[0]}var i=this;if(i.clk=r,"image"==r.type)if(void 0!==t.offsetX)i.clk_x=t.offsetX,i.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=a.offset();i.clk_x=t.pageX-o.left,i.clk_y=t.pageY-o.top}else i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop;setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function a(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var n={};n.fileapi=void 0!==e("").get(0).files,n.formdata=void 0!==window.FormData;var i=!!e.fn.prop;e.fn.attr2=function(){if(!i)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t){function r(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;o>a;a++)i[a]=i[a].replace(/\+/g," "),n=i[a].split("="),s.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return s}function o(a){for(var n=new FormData,i=0;i').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).bind("resize",function(){vcResizeVideoBackground($element)})}function vcResizeVideoBackground($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight(),ratio1=16,ratio2=9;containerW/containerH').val(m.extraData[d].value).appendTo(w)[0]:e('').val(m.extraData[d]).appendTo(w)[0]);m.iframeTarget||v.appendTo("body"),g.attachEvent?g.attachEvent("onload",s):g.addEventListener("load",s,!1),setTimeout(t,15);try{w.submit()}catch(h){var x=document.createElement("form").submit;x.apply(w)}}finally{w.setAttribute("action",i),w.setAttribute("enctype",c),r?w.setAttribute("target",r):f.removeAttr("target"),e(l).remove()}}function s(t){if(!x.aborted&&!F){if(M=n(g),M||(a("cannot access response document"),t=k),t===D&&x)return x.abort("timeout"),void S.reject(x,"timeout");if(t==k&&x)return x.abort("server abort"),void S.reject(x,"error","server abort");if(M&&M.location.href!=m.iframeSrc||T){g.detachEvent?g.detachEvent("onload",s):g.removeEventListener("load",s,!1);var r,i="success";try{if(T)throw"timeout";var o="xml"==m.dataType||M.XMLDocument||e.isXMLDoc(M);if(a("isXml="+o),!o&&window.opera&&(null===M.body||!M.body.innerHTML)&&--O)return a("requeing onLoad callback, DOM not available"),void setTimeout(s,250);var u=M.body?M.body:M.documentElement;x.responseText=u?u.innerHTML:null,x.responseXML=M.XMLDocument?M.XMLDocument:M,o&&(m.dataType="xml"),x.getResponseHeader=function(e){var t={"content-type":m.dataType};return t[e.toLowerCase()]},u&&(x.status=Number(u.getAttribute("status"))||x.status,x.statusText=u.getAttribute("statusText")||x.statusText);var c=(m.dataType||"").toLowerCase(),l=/(json|script|text)/.test(c);if(l||m.textarea){var f=M.getElementsByTagName("textarea")[0];if(f)x.responseText=f.value,x.status=Number(f.getAttribute("status"))||x.status,x.statusText=f.getAttribute("statusText")||x.statusText;else if(l){var p=M.getElementsByTagName("pre")[0],h=M.getElementsByTagName("body")[0];p?x.responseText=p.textContent?p.textContent:p.innerText:h&&(x.responseText=h.textContent?h.textContent:h.innerText)}}else"xml"==c&&!x.responseXML&&x.responseText&&(x.responseXML=X(x.responseText));try{E=_(x,c,m)}catch(y){i="parsererror",x.error=r=y||i}}catch(y){a("error caught: ",y),i="error",x.error=r=y||i}x.aborted&&(a("upload aborted"),i=null),x.status&&(i=x.status>=200&&x.status<300||304===x.status?"success":"error"),"success"===i?(m.success&&m.success.call(m.context,E,"success",x),S.resolve(x.responseText,"success",x),d&&e.event.trigger("ajaxSuccess",[x,m])):i&&(void 0===r&&(r=x.statusText),m.error&&m.error.call(m.context,x,i,r),S.reject(x,"error",r),d&&e.event.trigger("ajaxError",[x,m,r])),d&&e.event.trigger("ajaxComplete",[x,m]),d&&!--e.active&&e.event.trigger("ajaxStop"),m.complete&&m.complete.call(m.context,x,i),F=!0,m.timeout&&clearTimeout(j),setTimeout(function(){m.iframeTarget?v.attr("src",m.iframeSrc):v.remove(),x.responseXML=null},100)}}}var c,l,m,d,p,v,g,x,y,b,T,j,w=f[0],S=e.Deferred();if(S.abort=function(e){x.abort(e)},r)for(l=0;l '),v.css({position:"absolute",top:"-1000px",left:"-1000px"})),g=v[0],x={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var r="timeout"===t?"timeout":"aborted";a("aborting upload... "+r),this.aborted=1;try{g.contentWindow.document.execCommand&&g.contentWindow.document.execCommand ("Stop")}catch(n){}v.attr("src",m.iframeSrc),x.error=r,m.error&&m.error.call(m.context,x,r,t),d&&e.event.trigger("ajaxError",[x,m,r]),m.complete&&m.complete.call(m.context,x,r)}},d=m.global,d&&0===e.active++&&e.event.trigger("ajaxStart"),d&&e.event.trigger("ajaxSend",[x,m]),m.beforeSend&&m.beforeSend.call(m.context,x,m)===!1)return m.global&&e.active--,S.reject(),S;if(x.aborted)return S.reject(),S;y=w.clk,y&&(b=y.name,b&&!y.disabled&&(m.extraData=m.extraData||{},m.extraData[b]=y.value,"image"==y.type&&(m.extraData[b+".x"]=w.clk_x,m.extraData[b+".y"]=w.clk_y)));var D=1,k=2,A=e("meta[name=csrf-token]").attr("content"),L=e("meta[name=csrf-param]").attr("content");L&&A&&(m.extraData=m.extraData||{},m.extraData[L]=A),m.forceSync?o():setTimeout(o,10);var E,M,F,O=50,X=e.parseXML||function(e,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},C=e.parseJSON||function(e){return window.eval("("+e+")")},_=function(t,r,a){var n=t.getResponseHeader("content-type")||"",i="xml"===r||!r&&n.indexOf("xml")>=0,o=i?t.responseXML:t.responseText;return i&&"parsererror"===o.documentElement.nodeName&&e.error&&e.error("parsererror"),a&&a.dataFilter&&(o=a.dataFilter(o,r)),"string"==typeof o&&("json"===r||!r&&n.indexOf("json")>=0?o=C(o):("script"===r||!r&&n.indexOf("javascript")>=0)&&e.globalEval(o)),o};return S}if(!this.length)return a("ajaxSubmit: skipping submit process - no element selected"),this;var u,c,l,f=this;"function"==typeof t?t={success:t}:void 0===t&&(t={}),u=t.type||this.attr2("method"),c=t.url||this.attr2("action"),l="string"==typeof c?e.trim(c):"",l=l||window.location.href||"",l&&(l=(l.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:l,success:e.ajaxSettings.success,type:u||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var m={};if(this.trigger("form-pre-serialize",[this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&t.beforeSerialize(this,t)===!1)return a("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var d=t.traditional;void 0===d&&(d=e.ajaxSettings.traditional);var p,h=[],v=this.formToArray(t.semantic,h);if(t.data&&(t.extraData=t.data,p=e.param(t.data,d)),t.beforeSubmit&&t.beforeSubmit(v,this,t)===!1)return a("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[v,this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var g=e.param(v,d);p&&(g=g?g+"&"+p:p),"GET"==t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+g,t.data=null):t.data=g;var x=[];if(t.resetForm&&x.push(function(){f.resetForm()}),t.clearForm&&x.push(function(){f.clearForm(t.includeHidden)}),!t.dataType&&t.target){var y=t.success||function(){};x.push(function(r){var a=t.replaceTarget?"replaceWith":"html";e(t.target)[a](r).each(y,arguments)})}else t.success&&x.push(t.success);if(t.success=function(e,r,a){for(var n=t.context||this,i=0,o=x.length;o>i;i++)x[i].apply(n,[e,r,a||f,f])},t.error){var b=t.error;t.error=function(e,r,a){var n=t.context||this;b.apply(n,[e,r,a,f])}}if(t.complete){var T=t.complete;t.complete=function(e,r){var a=t.context||this;T.apply(a,[e,r,f])}}var j=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}),w=j.length>0,S="multipart/form-data",D=f.attr("enctype")==S||f.attr("encoding")==S,k=n.fileapi&&n.formdata;a("fileAPI :"+k);var A,L=(w||D)&&!k;t.iframe!==!1&&(t.iframe||L)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){A=s(v)}):A=s(v):A=(w||D)&&k?o(v):e.ajax(t),f.removeData("jqxhr").data("jqxhr",A);for(var E=0;E c;c++)if(d=u[c],f=d.name,f&&!d.disabled)if(t&&o.clk&&"image"==d.type)o.clk==d&&(a.push({name:f,value:e(d).val(),type:d.type}),a.push({name:f+".x",value:o.clk_x},{name:f+".y",value:o.clk_y}));else if(m=e.fieldValue(d,!0),m&&m.constructor==Array)for(r&&r.push(d),l=0,h=m.length;h>l;l++)a.push({name:f,value:m[l]});else if(n.fileapi&&"file"==d.type){r&&r.push(d);var v=d.files;if(v.length)for(l=0;l i;i++)r.push({name:a,value:n[i]});else null!==n&&"undefined"!=typeof n&&r.push({name:this.name,value:n})}}),e.param(r)},e.fn.fieldValue=function(t){for(var r=[],a=0,n=this.length;n>a;a++){var i=this[a],o=e.fieldValue(i,t);null===o||"undefined"==typeof o||o.constructor==Array&&!o.length||(o.constructor==Array?e.merge(r,o):r.push(o))}return r},e.fieldValue=function(t,r){var a=t.name,n=t.type,i=t.tagName.toLowerCase();if(void 0===r&&(r=!0),r&&(!a||t.disabled||"reset"==n||"button"==n||("checkbox"==n||"radio"==n)&&!t.checked||("submit"==n||"image"==n)&&t.form&&t.form.clk!=t||"select"==i&&-1==t.selectedIndex))return null;if("select"==i){var o=t.selectedIndex;if(0>o)return null;for(var s=[],u=t.options,c="select-one"==n,l=c?o+1:u.length,f=c?o:0;l>f;f++){var m=u[f];if(m.selected){var d=m.value;if(d||(d=m.attributes&&m.attributes.value&&!m.attributes.value.specified?m.text:m.value),c)return d;s.push(d)}}return s}return e(t).val()},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.fn.clearInputs=function(t){var r=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var a=this.type,n=this.tagName.toLowerCase();r.test(a)||"textarea"==n?this.value="":"checkbox"==a||"radio"==a?this.checked=!1:"select"==n?this.selectedIndex=-1:"file"==a?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(t===!0&&/hidden/.test(a)||"string"==typeof t&&e(this).is(t))&&(this.value="")})},e.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var r=this.type;if("checkbox"==r||"radio"==r)this.checked=t;else if("option"==this.tagName.toLowerCase()){var a=e(this).parent("select");t&&a[0]&&"select-one"==a[0].type&&a.find("option").selected(!1),this.selected=t}})},e.fn.ajaxSubmit.debug=!1});}catch(e){} try{(function($){'use strict';if(typeof _wpcf7==='undefined'||_wpcf7===null){return;} _wpcf7=$.extend({cached:0,inputs:[]},_wpcf7);$.fn.wpcf7InitForm=function(){this.ajaxForm({beforeSubmit:function(arr,$form,options){$form.wpcf7ClearResponseOutput();$form.find('[aria-invalid]').attr('aria-invalid','false');$form.find('.ajax-loader').addClass('is-active');return true;},beforeSerialize:function($form,options){$form.find('[placeholder].placeheld').each(function(i,n){$(n).val('');});return true;},data:{'_wpcf7_is_ajax_call':1},dataType:'json',success:$.wpcf7AjaxSuccess,error:function(xhr,status,error,$form){var e=$('').text(error.message);$form.after(e);}});if(_wpcf7.cached){this.wpcf7OnloadRefill();} this.wpcf7ToggleSubmit();this.find('.wpcf7-submit').wpcf7AjaxLoader();this.find('.wpcf7-acceptance').click(function(){$(this).closest('form').wpcf7ToggleSubmit();});this.find('.wpcf7-exclusive-checkbox').wpcf7ExclusiveCheckbox();this.find('.wpcf7-list-item.has-free-text').wpcf7ToggleCheckboxFreetext();this.find('[placeholder]').wpcf7Placeholder();if(_wpcf7.jqueryUi&&!_wpcf7.supportHtml5.date){this.find('input.wpcf7-date[type="date"]').each(function(){$(this).datepicker({dateFormat:'yy-mm-dd',minDate:new Date($(this).attr('min')),maxDate:new Date($(this).attr('max'))});});} if(_wpcf7.jqueryUi&&!_wpcf7.supportHtml5.number){this.find('input.wpcf7-number[type="number"]').each(function(){$(this).spinner({min:$(this).attr('min'),max:$(this).attr('max'),step:$(this).attr('step')});});} this.find('.wpcf7-character-count').wpcf7CharacterCount();this.find('.wpcf7-validates-as-url').change(function(){$(this).wpcf7NormalizeUrl();});this.find('.wpcf7-recaptcha').wpcf7Recaptcha();};$.wpcf7AjaxSuccess=function(data,status,xhr,$form){if(!$.isPlainObject(data)||$.isEmptyObject(data)){return;} _wpcf7.inputs=$form.serializeArray();var $responseOutput=$form.find('div.wpcf7-response-output');$form.wpcf7ClearResponseOutput();$form.find('.wpcf7-form-control').removeClass('wpcf7-not-valid');$form.removeClass('invalid spam sent failed');if(data.captcha){$form.wpcf7RefillCaptcha(data.captcha);} if(data.quiz){$form.wpcf7RefillQuiz(data.quiz);} if(data.invalids){$.each(data.invalids,function(i,n){$form.find(n.into).wpcf7NotValidTip(n.message);$form.find(n.into).find('.wpcf7-form-control').addClass('wpcf7-not-valid');$form.find(n.into).find('[aria-invalid]').attr('aria-invalid','true');});$responseOutput.addClass('wpcf7-validation-errors');$form.addClass('invalid');$(data.into).wpcf7TriggerEvent('invalid');}else if(1==data.spam){$form.find('[name="g-recaptcha-response"]').each(function(){if(''==$(this).val()){var $recaptcha=$(this).closest('.wpcf7-form-control-wrap');$recaptcha.wpcf7NotValidTip(_wpcf7.recaptcha.messages.empty);}});$responseOutput.addClass('wpcf7-spam-blocked');$form.addClass('spam');$(data.into).wpcf7TriggerEvent('spam');}else if(1==data.mailSent){$responseOutput.addClass('wpcf7-mail-sent-ok');$form.addClass('sent');if(data.onSentOk){$.each(data.onSentOk,function(i,n){eval(n)});} $(data.into).wpcf7TriggerEvent('mailsent');}else{$responseOutput.addClass('wpcf7-mail-sent-ng');$form.addClass('failed');$(data.into).wpcf7TriggerEvent('mailfailed');} if(data.onSubmit){$.each(data.onSubmit,function(i,n){eval(n)});} $(data.into).wpcf7TriggerEvent('submit');if(1==data.mailSent){$form.resetForm();} $form.find('[placeholder].placeheld').each(function(i,n){$(n).val($(n).attr('placeholder'));});$responseOutput.append(data.message).slideDown('fast');$responseOutput.attr('role','alert');$.wpcf7UpdateScreenReaderResponse($form,data);};$.fn.wpcf7TriggerEvent=function(name){return this.each(function(){var elmId=this.id;var inputs=_wpcf7.inputs;var event=new CustomEvent('wpcf7'+name,{bubbles:true,detail:{id:elmId,inputs:inputs}});this.dispatchEvent(event);$(this).trigger('wpcf7:'+name);$(this).trigger(name+'.wpcf7');});};$.fn.wpcf7ExclusiveCheckbox=function(){return this.find('input:checkbox').click(function(){var name=$(this).attr('name');$(this).closest('form').find('input:checkbox[name="'+name+'"]').not(this).prop('checked',false);});};$.fn.wpcf7Placeholder=function(){if(_wpcf7.supportHtml5.placeholder){return this;} return this.each(function(){$(this).val($(this).attr('placeholder'));$(this).addClass('placeheld');$(this).focus(function(){if($(this).hasClass('placeheld')){$(this).val('').removeClass('placeheld');}});$(this).blur(function(){if(''===$(this).val()){$(this).val($(this).attr('placeholder'));$(this).addClass('placeheld');}});});};$.fn.wpcf7AjaxLoader=function(){return this.each(function(){$(this).after('');});};$.fn.wpcf7ToggleSubmit=function(){return this.each(function(){var form=$(this);if(this.tagName.toLowerCase()!='form'){form=$(this).find('form').first();} if(form.hasClass('wpcf7-acceptance-as-validation')){return;} var submit=form.find('input:submit');if(!submit.length){return;} var acceptances=form.find('input:checkbox.wpcf7-acceptance');if(!acceptances.length){return;} submit.removeAttr('disabled');acceptances.each(function(i,n){n=$(n);if(n.hasClass('wpcf7-invert')&&n.is(':checked')||!n.hasClass('wpcf7-invert')&&!n.is(':checked')){submit.attr('disabled','disabled');}});});};$.fn.wpcf7ToggleCheckboxFreetext=function(){return this.each(function(){var $wrap=$(this).closest('.wpcf7-form-control');if($(this).find(':checkbox, :radio').is(':checked')){$(this).find(':input.wpcf7-free-text').prop('disabled',false);}else{$(this).find(':input.wpcf7-free-text').prop('disabled',true);} $wrap.find(':checkbox, :radio').change(function(){var $cb=$('.has-free-text',$wrap).find(':checkbox, :radio');var $freetext=$(':input.wpcf7-free-text',$wrap);if($cb.is(':checked')){$freetext.prop('disabled',false).focus();}else{$freetext.prop('disabled',true);}});});};$.fn.wpcf7CharacterCount=function(){return this.each(function(){var $count=$(this);var name=$count.attr('data-target-name');var down=$count.hasClass('down');var starting=parseInt($count.attr('data-starting-value'),10);var maximum=parseInt($count.attr('data-maximum-value'),10);var minimum=parseInt($count.attr('data-minimum-value'),10);var updateCount=function($target){var length=$target.val().length;var count=down?starting-length:length;$count.attr('data-current-value',count);$count.text(count);if(maximum&&maximum '+message+'');if($into.is('.use-floating-validation-tip *')){$('.wpcf7-not-valid-tip',$into).mouseover(function(){$(this).wpcf7FadeOut();});$(':input',$into).focus(function(){$('.wpcf7-not-valid-tip',$into).not(':hidden').wpcf7FadeOut();});}});};$.fn.wpcf7FadeOut=function(){return this.each(function(){$(this).animate({opacity:0},'fast',function(){$(this).css({'z-index':-100});});});};$.fn.wpcf7OnloadRefill=function(){return this.each(function(){var url=$(this).attr('action');if(0 ');$.each(data.invalids,function(i,n){if(n.idref){var $li=$('').append($('').attr('href','#'+n.idref).append(n.message));}else{var $li=$('').append(n.message);} $invalids.append($li);});$response.append($invalids);} $response.attr('role','alert').focus();}};$.wpcf7SupportHtml5=function(){var features={};var input=document.createElement('input');features.placeholder='placeholder'in input;var inputTypes=['email','url','tel','number','range','date'];$.each(inputTypes,function(index,value){input.setAttribute('type',value);features[value]=input.type!=='text';});return features;};$(function(){_wpcf7.supportHtml5=$.wpcf7SupportHtml5();$('div.wpcf7 > form').wpcf7InitForm();});})(jQuery);(function(){if(typeof window.CustomEvent==="function")return false;function CustomEvent(event,params){params=params||{bubbles:false,cancelable:false,detail:undefined};var evt=document.createEvent('CustomEvent');evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt;} CustomEvent.prototype=window.Event.prototype;window.CustomEvent=CustomEvent;})();}catch(e){} try{!function(a){function b(){var a=location.href;return hashtag=a.indexOf("#prettyPhoto")!==-1&&decodeURI(a.substring(a.indexOf("#prettyPhoto")+1,a.length)),hashtag&&(hashtag=hashtag.replace(/<|>/g,"")),hashtag}function c(){"undefined"!=typeof theRel&&(location.hash=theRel+"/"+rel_index+"/")}function d(){location.href.indexOf("#prettyPhoto")!==-1&&(location.hash="prettyPhoto")}function e(a,b){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+a+"=([^]*)",d=new RegExp(c),e=d.exec(b);return null==e?"":e[1]}a.prettyPhoto={version:"3.1.6"},a.fn.prettyPhoto=function(f){function g(){a(".pp_loaderIcon").hide(),projectedTop=scroll_pos.scrollTop+(A/2-r.containerHeight/2),projectedTop<0&&(projectedTop=0),$ppt.fadeTo(settings.animation_speed,1),$pp_pic_holder.find(".pp_content").animate({height:r.contentHeight,width:r.contentWidth},settings.animation_speed),$pp_pic_holder.animate({top:projectedTop,left:B/2-r.containerWidth/2<0?0:B/2-r.containerWidth/2,width:r.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(r.height).width(r.width),$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed),isSet&&"image"==l(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide(),settings.allow_expand&&(r.resized?a("a.pp_expand,a.pp_contract").show():a("a.pp_expand").hide()),!settings.autoplay_slideshow||x||s||a.prettyPhoto.startSlideshow(),settings.changepicturecallback(),s=!0}),p(),f.ajaxcallback()}function h(b){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden"),$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){a(".pp_loaderIcon").show(),b()})}function i(b){b>1?a(".pp_nav").show():a(".pp_nav").hide()}function j(a,b){if(resized=!1,k(a,b),imageWidth=a,imageHeight=b,(w>B||v>A)&&doresize&&settings.allow_resize&&!z){for(resized=!0,fitting=!1;!fitting;)w>B?(imageWidth=B-200,imageHeight=b/a*imageWidth):v>A?(imageHeight=A-200,imageWidth=a/b*imageHeight):fitting=!0,v=imageHeight,w=imageWidth;(w>B||v>A)&&j(w,v),k(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(v),containerWidth:Math.floor(w)+2*settings.horizontal_padding,contentHeight:Math.floor(t),contentWidth:Math.floor(u),resized:resized}}function k(b,c){b=parseFloat(b),c=parseFloat(c),$pp_details=$pp_pic_holder.find(".pp_details"),$pp_details.width(b),detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom")),$pp_details=$pp_details.clone().addClass(settings.theme).width(b).appendTo(a("body")).css({position:"absolute",top:-1e4}),detailsHeight+=$pp_details.height(),detailsHeight=detailsHeight<=34?36:detailsHeight,$pp_details.remove(),$pp_title=$pp_pic_holder.find(".ppt"),$pp_title.width(b),titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom")),$pp_title=$pp_title.clone().appendTo(a("body")).css({position:"absolute",top:-1e4}),titleHeight+=$pp_title.height(),$pp_title.remove(),t=c+detailsHeight,u=b,v=t+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height(),w=b}function l(a){return a.match(/youtube\.com\/watch/i)||a.match(/youtu\.be/i)?"youtube":a.match(/vimeo\.com/i)?"vimeo":a.match(/\b.mov\b/i)?"quicktime":a.match(/\b.swf\b/i)?"flash":a.match(/\biframe=true\b/i)?"iframe":a.match(/\bajax=true\b/i)?"ajax":a.match(/\bcustom=true\b/i)?"custom":"#"==a.substr(0,1)?"inline":"image"}function m(){if(doresize&&"undefined"!=typeof $pp_pic_holder){if(scroll_pos=n(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=A/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>A)return;$pp_pic_holder.css({top:projectedTop,left:B/2+scroll_pos.scrollLeft-contentwidth/2})}}function n(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function o(){A=a(window).height(),B=a(window).width(),"undefined"!=typeof $pp_overlay&&$pp_overlay.height(a(document).height()).width(B)}function p(){isSet&&settings.overlay_gallery&&"image"==l(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme||"pp_default"==settings.theme?50:30,itemsPerPage=Math.floor((r.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage ";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject),$pp_pic_holder.find("#pp_full_res").after(toInject),$pp_gallery=a(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li"),$pp_gallery.find(".pp_arrow_next").click(function(){return a.prettyPhoto.changeGalleryPage("next"),a.prettyPhoto.stopSlideshow(),!1}),$pp_gallery.find(".pp_arrow_previous").click(function(){return a.prettyPhoto.changeGalleryPage("previous"),a.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()}),itemWidth=57,$pp_gallery_li.each(function(b){a(this).find("a").click(function(){return a.prettyPhoto.changePage(b),a.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('Play'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return a.prettyPhoto.startSlideshow(),!1})),$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme),$pp_overlay.css({opacity:0,height:a(document).height(),width:a(window).width()}).bind("click",function(){settings.modal||a.prettyPhoto.close()}),a("a.pp_close").bind("click",function(){return a.prettyPhoto.close(),!1}),settings.allow_expand&&a("a.pp_expand").bind("click",function(b){return a(this).hasClass("pp_expand")?(a(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(a(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),h(function(){a.prettyPhoto.open()}),!1}),$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return a.prettyPhoto.changePage("previous"),a.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return a.prettyPhoto.changePage("next"),a.prettyPhoto.stopSlideshow(),!1}),m()}f=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:' \t\t\t\t\t\t\t\t\t\t\t',gallery_markup:'\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t \t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tExpand \t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t \t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPrevious \t\t\t\t\t\t\t\t',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tNext \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{gallery} \t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t{content}',custom_markup:"",social_tools:''},f);var r,s,t,u,v,w,x,y=this,z=!1,A=a(window).height(),B=a(window).width();return doresize=!0,scroll_pos=n(),a(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){m(),o()}),f.keyboard_shortcuts&&a(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(b){if("undefined"!=typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(b.keyCode){case 37:a.prettyPhoto.changePage("previous"),b.preventDefault();break;case 39:a.prettyPhoto.changePage("next"),b.preventDefault();break;case 27:settings.modal||a.prettyPhoto.close(),b.preventDefault()}}),a.prettyPhoto.initialize=function(){return settings=f,"pp_default"==settings.theme&&(settings.horizontal_padding=16),theRel=a(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=!!galleryRegExp.exec(theRel),pp_images=isSet?jQuery.map(y,function(b,c){if(a(b).attr(settings.hook).indexOf(theRel)!=-1)return a(b).attr("href")}):a.makeArray(a(this).attr("href")),pp_titles=isSet?jQuery.map(y,function(b,c){if(a(b).attr(settings.hook).indexOf(theRel)!=-1)return a(b).find("img").attr("alt")?a(b).find("img").attr("alt"):""}):a.makeArray(a(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(y,function(b,c){if(a(b).attr(settings.hook).indexOf(theRel)!=-1)return a(b).attr("title")?a(b).attr("title"):""}):a.makeArray(a(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray(a(this).attr("href"),pp_images),rel_index=isSet?set_position:a("a["+settings.hook+"^='"+theRel+"']").index(a(this)),q(this),settings.allow_resize&&a(window).bind("scroll.prettyphoto",function(){m()}),a.prettyPhoto.open(),!1},a.prettyPhoto.open=function(b){return"undefined"==typeof settings&&(settings=f,pp_images=a.makeArray(arguments[0]),pp_titles=arguments[1]?a.makeArray(arguments[1]):a.makeArray(""),pp_descriptions=arguments[2]?a.makeArray(arguments[2]):a.makeArray(""),isSet=pp_images.length>1,set_position=arguments[3]?arguments[3]:0,q(b.target)),settings.hideflash&&a("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),i(a(pp_images).length),a(".pp_loaderIcon").show(),settings.deeplinking&&c(),settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+a(pp_images).length),"undefined"!=typeof pp_descriptions[set_position]&&""!=pp_descriptions[set_position]?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(e("width",pp_images[set_position]))?e("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(e("height",pp_images[set_position]))?e("height",pp_images[set_position]):settings.default_height.toString(),z=!1,movie_height.indexOf("%")!=-1&&(movie_height=parseFloat(a(window).height()*parseFloat(movie_height)/100-150),z=!0),movie_width.indexOf("%")!=-1&&(movie_width=parseFloat(a(window).width()*parseFloat(movie_width)/100-150),z=!0),$pp_pic_holder.fadeIn(function(){switch(settings.show_title&&""!=pp_titles[set_position]&&"undefined"!=typeof pp_titles[set_position]?$ppt.html(unescape(pp_titles[set_position])):$ppt.html(" "),imgPreloader="",skipInjection=!1,l(pp_images[set_position])){case"image":imgPreloader=new Image,nextImage=new Image,isSet&&set_position0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&")))),movie="//www.youtube.com/embed/"+movie_id,e("rel",pp_images[set_position])?movie+="?rel="+e("rel",pp_images[set_position]):movie+="?rel=1",settings.autoplay&&(movie+="&autoplay=1"),toInject=settings.iframe_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":r=j(movie_width,movie_height),movie_id=pp_images[set_position];var b=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/,c=movie_id.match(b);movie="//player.vimeo.com/video/"+c[3]+"?title=0&byline=0&portrait=0",settings.autoplay&&(movie+="&autoplay=1;"),vimeo_width=r.width+"/embed/?moog_width="+r.width,toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,r.height).replace(/{path}/g,movie);break;case"quicktime":r=j(movie_width,movie_height),r.height+=15,r.contentHeight+=15,r.containerHeight+=15,toInject=settings.quicktime_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":r=j(movie_width,movie_height),flash_vars=pp_images[set_position],flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length),filename=pp_images[set_position],filename=filename.substring(0,filename.indexOf("?")),toInject=settings.flash_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":r=j(movie_width,movie_height),frame_url=pp_images[set_position],frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1),toInject=settings.iframe_markup.replace(/{width}/g,r.width).replace(/{height}/g,r.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1,r=j(movie_width,movie_height),doresize=!0,skipInjection=!0,a.get(pp_images[set_position],function(a){toInject=settings.inline_markup.replace(/{content}/g,a),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,g()});break;case"custom":r=j(movie_width,movie_height),toInject=settings.custom_markup;break;case"inline":myClone=a(pp_images[set_position]).clone().append('
').css({width:settings.default_width}).wrapInner('').appendTo(a("body")).show(),doresize=!1,r=j(a(myClone).width(),a(myClone).height()),doresize=!0,a(myClone).remove(),toInject=settings.inline_markup.replace(/{content}/g,a(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,g())}),!1},a.prettyPhoto.changePage=function(b){currentGalleryPage=0,"previous"==b?(set_position--,set_position<0&&(set_position=a(pp_images).length-1)):"next"==b?(set_position++,set_position>a(pp_images).length-1&&(set_position=0)):set_position=b,rel_index=set_position,doresize||(doresize=!0),settings.allow_expand&&a(".pp_contract").removeClass("pp_contract").addClass("pp_expand"),h(function(){a.prettyPhoto.open()})},a.prettyPhoto.changeGalleryPage=function(a){"next"==a?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0)):"previous"==a?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage)):currentGalleryPage=a,slide_speed="next"==a||"previous"==a?settings.animation_speed:0,slide_to=currentGalleryPage*(itemsPerPage*itemWidth),$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},a.prettyPhoto.startSlideshow=function(){"undefined"==typeof x?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return a.prettyPhoto.stopSlideshow(),!1}),x=setInterval(a.prettyPhoto.startSlideshow,settings.slideshow)):a.prettyPhoto.changePage("next")},a.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return a.prettyPhoto.startSlideshow(),!1}),clearInterval(x),x=void 0},a.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(a.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),a("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){a(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){settings.hideflash&&a("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible"),a(this).remove(),a(window).unbind("scroll.prettyphoto"),d(),settings.callback(),doresize=!0,s=!1,delete settings}))},!pp_alreadyInitialized&&b()&&(pp_alreadyInitialized=!0,hashIndex=b(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){a("a["+f.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",a.prettyPhoto.initialize)}}(jQuery);var pp_alreadyInitialized=!1;}catch(e){} try{!function(a){a(function(){a("a.zoom").prettyPhoto({hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1}),a("a[data-rel^='prettyPhoto']").prettyPhoto({hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1})})}(jQuery);}catch(e){} try{jQuery(function(a){return"undefined"!=typeof wc_single_product_params&&(a("body").on("init",".wc-tabs-wrapper, .woocommerce-tabs",function(){a(".wc-tab, .woocommerce-tabs .panel:not(.panel .panel)").hide();var b=window.location.hash,c=window.location.href,d=a(this).find(".wc-tabs, ul.tabs").first();b.toLowerCase().indexOf("comment-")>=0||"#reviews"===b||"#tab-reviews"===b?d.find("li.reviews_tab a").click():c.indexOf("comment-page-")>0||c.indexOf("cpage=")>0?d.find("li.reviews_tab a").click():d.find("li:first a").click()}).on("click",".wc-tabs li a, ul.tabs li a",function(b){b.preventDefault();var c=a(this),d=c.closest(".wc-tabs-wrapper, .woocommerce-tabs"),e=d.find(".wc-tabs, ul.tabs");e.find("li").removeClass("active"),d.find(".wc-tab, .panel:not(.panel .panel)").hide(),c.closest("li").addClass("active"),d.find(c.attr("href")).show()}).on("click","a.woocommerce-review-link",function(){return a(".reviews_tab a").click(),!0}).on("init","#rating",function(){a("#rating").hide().before('')}).on("click","#respond p.stars a",function(){var b=a(this),c=a(this).closest("#respond").find("#rating"),d=a(this).closest(".stars");return c.val(b.text()),b.siblings("a").removeClass("active"),b.addClass("active"),d.addClass("selected"),!1}).on("click","#respond #submit",function(){var b=a(this).closest("#respond").find("#rating"),c=b.val();if(b.length>0&&!c&&"yes"===wc_single_product_params.review_rating_required)return window.alert(wc_single_product_params.i18n_required_rating_text),!1}),void a(".wc-tabs-wrapper, .woocommerce-tabs, #rating").trigger("init"))});}catch(e){} try{ !function(){"use strict";function a(a){function b(b,d){var f,p,q=b==window,r=d&&void 0!==d.message?d.message:void 0;if(d=a.extend({},a.blockUI.defaults,d||{}),!d.ignoreIfBlocked||!a(b).data("blockUI.isBlocked")){if(d.overlayCSS=a.extend({},a.blockUI.defaults.overlayCSS,d.overlayCSS||{}),f=a.extend({},a.blockUI.defaults.css,d.css||{}),d.onOverlayClick&&(d.overlayCSS.cursor="pointer"),p=a.extend({},a.blockUI.defaults.themedCSS,d.themedCSS||{}),r=void 0===r?d.message:r,q&&n&&c(window,{fadeOut:0}),r&&"string"!=typeof r&&(r.parentNode||r.jquery)){var s=r.jquery?r[0]:r,t={};a(b).data("blockUI.history",t),t.el=s,t.parent=s.parentNode,t.display=s.style.display,t.position=s.style.position,t.parent&&t.parent.removeChild(s)}a(b).data("blockUI.onUnblock",d.onUnblock);var u,v,w,x,y=d.baseZ;u=a(k||d.forceIframe?'':''),v=a(d.theme?'':''),d.theme&&q?(x=' "):d.theme?(x=' "):x=q?'':'',w=a(x),r&&(d.theme?(w.css(p),w.addClass("ui-widget-content")):w.css(f)),d.theme||v.css(d.overlayCSS),v.css("position",q?"fixed":"absolute"),(k||d.forceIframe)&&u.css("opacity",0);var z=[u,v,w],A=a(q?"body":b);a.each(z,function(){this.appendTo(A)}),d.theme&&d.draggable&&a.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var B=m&&(!a.support.boxModel||a("object,embed",q?null:b).length>0);if(l||B){if(q&&d.allowBodyStretch&&a.support.boxModel&&a("html,body").css("height","100%"),(l||!a.support.boxModel)&&!q)var C=i(b,"borderTopWidth"),D=i(b,"borderLeftWidth"),E=C?"(0 - "+C+")":0,F=D?"(0 - "+D+")":0;a.each(z,function(a,b){var c=b[0].style;if(c.position="absolute",a<2)q?c.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+d.quirksmodeOffsetHack+') + "px"'):c.setExpression("height",'this.parentNode.offsetHeight + "px"'),q?c.setExpression("width",'jQuery.support.boxModel&&document.documentElement.clientWidth||document.body.clientWidth + "px"'):c.setExpression("width",'this.parentNode.offsetWidth + "px"'),F&&c.setExpression("left",F),E&&c.setExpression("top",E);else if(d.centerY)q&&c.setExpression("top",'(document.documentElement.clientHeight||document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah=document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "px"'),c.marginTop=0;else if(!d.centerY&&q){var e=d.css&&d.css.top?parseInt(d.css.top,10):0,f="((document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "+e+') + "px"';c.setExpression("top",f)}})}if(r&&(d.theme?w.find(".ui-widget-content").append(r):w.append(r),(r.jquery||r.nodeType)&&a(r).show()),(k||d.forceIframe)&&d.showOverlay&&u.show(),d.fadeIn){var G=d.onBlock?d.onBlock:j,H=d.showOverlay&&!r?G:j,I=r?G:j;d.showOverlay&&v._fadeIn(d.fadeIn,H),r&&w._fadeIn(d.fadeIn,I)}else d.showOverlay&&v.show(),r&&w.show(),d.onBlock&&d.onBlock.bind(w)();if(e(1,b,d),q?(n=w[0],o=a(d.focusableElements,n),d.focusInput&&setTimeout(g,20)):h(w[0],d.centerX,d.centerY),d.timeout){var J=setTimeout(function(){q?a.unblockUI(d):a(b).unblock(d)},d.timeout);a(b).data("blockUI.timeout",J)}}}function c(b,c){var f,g=b==window,h=a(b),i=h.data("blockUI.history"),j=h.data("blockUI.timeout");j&&(clearTimeout(j),h.removeData("blockUI.timeout")),c=a.extend({},a.blockUI.defaults,c||{}),e(0,b,c),null===c.onUnblock&&(c.onUnblock=h.data("blockUI.onUnblock"),h.removeData("blockUI.onUnblock"));var k;k=g?a(document.body).children().filter(".blockUI").add("body > .blockUI"):h.find(">.blockUI"),c.cursorReset&&(k.length>1&&(k[1].style.cursor=c.cursorReset),k.length>2&&(k[2].style.cursor=c.cursorReset)),g&&(n=o=null),c.fadeOut?(f=k.length,k.stop().fadeOut(c.fadeOut,function(){0===--f&&d(k,i,c,b)})):d(k,i,c,b)}function d(b,c,d,e){var f=a(e);if(!f.data("blockUI.isBlocked")){b.each(function(a,b){this.parentNode&&this.parentNode.removeChild(this)}),c&&c.el&&(c.el.style.display=c.display,c.el.style.position=c.position,c.el.style.cursor="default",c.parent&&c.parent.appendChild(c.el),f.removeData("blockUI.history")),f.data("blockUI.static")&&f.css("position","static"),"function"==typeof d.onUnblock&&d.onUnblock(e,d);var g=a(document.body),h=g.width(),i=g[0].style.width;g.width(h-1).width(h),g[0].style.width=i}}function e(b,c,d){var e=c==window,g=a(c);if((b||(!e||n)&&(e||g.data("blockUI.isBlocked")))&&(g.data("blockUI.isBlocked",b),e&&d.bindEvents&&(!b||d.showOverlay))){var h="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";b?a(document).bind(h,d,f):a(document).unbind(h,f)}}function f(b){if("keydown"===b.type&&b.keyCode&&9==b.keyCode&&n&&b.data.constrainTabKey){var c=o,d=!b.shiftKey&&b.target===c[c.length-1],e=b.shiftKey&&b.target===c[0];if(d||e)return setTimeout(function(){g(e)},10),!1}var f=b.data,h=a(b.target);return h.hasClass("blockOverlay")&&f.onOverlayClick&&f.onOverlayClick(b),h.parents("div."+f.blockMsgClass).length>0||0===h.parents().children().filter("div.blockUI").length}function g(a){if(o){var b=o[a===!0?o.length-1:0];b&&b.focus()}}function h(a,b,c){var d=a.parentNode,e=a.style,f=(d.offsetWidth-a.offsetWidth)/2-i(d,"borderLeftWidth"),g=(d.offsetHeight-a.offsetHeight)/2-i(d,"borderTopWidth");b&&(e.left=f>0?f+"px":"0"),c&&(e.top=g>0?g+"px":"0")}function i(b,c){return parseInt(a.css(b,c),10)||0}a.fn._fadeIn=a.fn.fadeIn;var j=a.noop||function(){},k=/MSIE/.test(navigator.userAgent),l=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),m=(document.documentMode||0,a.isFunction(document.createElement("div").style.setExpression));a.blockUI=function(a){b(window,a)},a.unblockUI=function(a){c(window,a)},a.growlUI=function(b,c,d,e){var f=a('');b&&f.append(""+b+"
"),c&&f.append(""+c+"
"),void 0===d&&(d=3e3);var g=function(b){b=b||{},a.blockUI({message:f,fadeIn:"undefined"!=typeof b.fadeIn?b.fadeIn:700,fadeOut:"undefined"!=typeof b.fadeOut?b.fadeOut:1e3,timeout:"undefined"!=typeof b.timeout?b.timeout:d,centerY:!1,showOverlay:!1,onUnblock:e,css:a.blockUI.defaults.growlCSS})};g();f.css("opacity");f.mouseover(function(){g({fadeIn:0,timeout:3e4});var b=a(".blockMsg");b.stop(),b.fadeTo(300,1)}).mouseout(function(){a(".blockMsg").fadeOut(1e3)})},a.fn.block=function(c){if(this[0]===window)return a.blockUI(c),this;var d=a.extend({},a.blockUI.defaults,c||{});return this.each(function(){var b=a(this);d.ignoreIfBlocked&&b.data("blockUI.isBlocked")||b.unblock({fadeOut:0})}),this.each(function(){"static"==a.css(this,"position")&&(this.style.position="relative",a(this).data("blockUI.static",!0)),this.style.zoom=1,b(this,c)})},a.fn.unblock=function(b){return this[0]===window?(a.unblockUI(b),this):this.each(function(){c(this,b)})},a.blockUI.version=2.7,a.blockUI.defaults={message:"Please wait...
",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var n=null,o=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],a):a(jQuery)}();}catch(e){} try{jQuery(function(a){a(".woocommerce-ordering").on("change","select.orderby",function(){a(this).closest("form").submit()}),a("input.qty:not(.product-quantity input.qty)").each(function(){var b=parseFloat(a(this).attr("min"));b>=0&&parseFloat(a(this).val())0?a(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():a(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),a(document.body).bind("adding_to_cart",function(){a(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()})});}catch(e){} try{(function(d){"function"===typeof define&&define.amd?define(["jquery"],d):d(jQuery)})(function(d){function g(a,b){var c=function(){},c={autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:g.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:c,onSearchComplete:c,onSearchError:c,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0, preventBadQueries:!0,lookupFilter:function(a,b,c){return-1!==a.value.toLowerCase().indexOf(c)},paramName:"query",transformResult:function(a){return"string"===typeof a?d.parseJSON(a):a},showNoSuggestionNotice:!1,noSuggestionNotice:"No results"};this.element=a;this.el=d(a);this.suggestions=[];this.badQueries=[];this.selectedIndex=-1;this.currentValue=this.element.value;this.intervalId=0;this.cachedResponse={};this.onChange=this.onChangeInterval=null;this.isLocal=!1;this.suggestionsContainer=null;this.options= d.extend({},c,b);this.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"};this.hint=null;this.hintValue="";this.selection=null;this.initialize();this.setOptions(b)}var h=function(){return{escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(a){var b=document.createElement("div");b.className=a;b.style.position="absolute";b.style.display="none";return b}}}();g.utils=h;d.YithAutocomplete=g;g.formatResult=function(a, b){var c="("+h.escapeRegExChars(b)+")";return a.value.replace(new RegExp(c,"gi"),"$1")};g.prototype={killerFn:null,initialize:function(){var a=this,b="."+a.classes.suggestion,c=a.classes.selected,e=a.options,f;a.element.setAttribute("autocomplete","off");a.killerFn=function(b){0===d(b.target).closest("."+a.options.containerClass).length&&(a.killSuggestions(),a.disableKillerFn())};a.suggestionsContainer=g.utils.createNode(e.containerClass);f=d(a.suggestionsContainer);f.appendTo(e.appendTo); "auto"!==e.width&&f.width(e.width);f.on("mouseover.autocomplete",b,function(){a.activate(d(this).data("index"))});f.on("mouseout.autocomplete",function(){a.selectedIndex=-1;f.children("."+c).removeClass(c)});f.on("click.autocomplete",b,function(){a.select(d(this).data("index"))});a.fixPosition();a.fixPositionCapture=function(){a.visible&&a.fixPosition()};d(window).on("resize.autocomplete",a.fixPositionCapture);a.el.on("keydown.autocomplete",function(b){a.onKeyPress(b)});a.el.on("keyup.autocomplete", function(b){a.onKeyUp(b)});a.el.on("blur.autocomplete",function(){a.onBlur()});a.el.on("focus.autocomplete",function(){a.onFocus()});a.el.on("change.autocomplete",function(b){a.onKeyUp(b)})},onFocus:function(){this.fixPosition();if(this.options.minChars<=this.el.val().length)this.onValueChange()},onBlur:function(){this.enableKillerFn()},setOptions:function(a){var b=this.options;d.extend(b,a);if(this.isLocal=d.isArray(b.lookup))b.lookup=this.verifySuggestionsFormat(b.lookup);d(this.suggestionsContainer).css({"max-height":b.maxHeight+ "px",width:b.width+"px","z-index":b.zIndex})},clearCache:function(){this.cachedResponse={};this.badQueries=[]},clear:function(){this.clearCache();this.currentValue="";this.suggestions=[]},disable:function(){this.disabled=!0;this.currentRequest&&this.currentRequest.abort()},enable:function(){this.disabled=!1},fixPosition:function(){var a;"body"===this.options.appendTo&&(a=this.el.offset(),a={top:a.top+this.el.outerHeight()+"px",left:a.left+"px"},"auto"===this.options.width&&(a.width=this.el.outerWidth()- 2+"px"),d(this.suggestionsContainer).css(a))},enableKillerFn:function(){d(document).on("click.autocomplete",this.killerFn)},disableKillerFn:function(){d(document).off("click.autocomplete",this.killerFn)},killSuggestions:function(){var a=this;a.stopKillSuggestions();a.intervalId=window.setInterval(function(){a.hide();a.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var a=this.el.val().length,b=this.element.selectionStart;return"number"===typeof b?b===a:document.selection?(b=document.selection.createRange(),b.moveStart("character",-a),a===b.text.length):!0},onKeyPress:function(a){if(!this.disabled&&!this.visible&&40===a.which&&this.currentValue)this.suggest();else if(!this.disabled&&this.visible){switch(a.which){case 27:this.el.val(this.currentValue);this.hide();break;case 39:if(this.hint&&this.options.onHint&&this.isCursorAtEnd()){this.selectHint();break}return;case 9:if(this.hint&&this.options.onHint){this.selectHint();return}case 13:if(-1===this.selectedIndex){this.hide();return}this.select(this.selectedIndex);if(9===a.which&&!1===this.options.tabDisabled)return;break;case 38:this.moveUp();break;case 40:this.moveDown();break;default:return}a.stopImmediatePropagation();a.preventDefault()}},onKeyUp:function(a){var b=this;if(!b.disabled){switch(a.which){case 38:case 40:return}clearInterval(b.onChangeInterval);if(b.currentValue!==b.el.val())if(b.findBestHint(),0f&&(b.suggestions=b.suggestions.slice(0,f));return b},getSuggestions:function(a){var b,c=this,e=c.options, f=e.serviceUrl,k,g;e.params[e.paramName]=a;k=e.ignoreParams?null:e.params;c.isLocal?b=c.getSuggestionsLocal(a):(d.isFunction(f)&&(f=f.call(c.element,a)),g=f+"?"+d.param(k||{}),b=c.cachedResponse[g]);b&&d.isArray(b.suggestions)?(c.suggestions=b.suggestions,c.suggest()):c.isBadQuery(a)||!1===e.onSearchStart.call(c.element,e.params)||(c.currentRequest&&c.currentRequest.abort(),c.currentRequest=d.ajax({url:f,data:k,type:e.type,dataType:e.dataType}).done(function(b){c.currentRequest=null;b=e.transformResult(b); c.processResponse(b,a,g);e.onSearchComplete.call(c.element,a,b.suggestions)}).fail(function(b,d,f){e.onSearchError.call(c.element,a,b,d,f)}))},isBadQuery:function(a){if(!this.options.preventBadQueries)return!1;for(var b=this.badQueries,c=b.length;c--;)if(0===a.indexOf(b[c]))return!0;return!1},hide:function(){this.visible=!1;this.selectedIndex=-1;d(this.suggestionsContainer).hide();this.signalHint(null)},suggest:function(){if(0===this.suggestions.length)this.options.showNoSuggestionNotice?this.noSuggestions(): this.hide();else{var a=this.options,b=a.formatResult,c=this.getQuery(this.currentValue),e=this.classes.suggestion,f=this.classes.selected,g=d(this.suggestionsContainer),h=a.beforeRender,l="",m;if(a.triggerSelectOnValidInput&&(m=this.findSuggestionIndex(c),-1!==m)){this.select(m);return}d.each(this.suggestions,function(a,d){l+=' '+b(d,c)+""});this.adjustContainerWidth();g.html(l);a.autoSelectFirst&&(this.selectedIndex=0,g.children().first().addClass(f));d.isFunction(h)&& h.call(this.element,g);g.show();this.visible=!0;this.findBestHint()}},noSuggestions:function(){var a=d(this.suggestionsContainer),b;b=""+(''+this.options.noSuggestionNotice+"");this.adjustContainerWidth();a.html(b);a.show();this.visible=!0},adjustContainerWidth:function(){var a=this.options,b=d(this.suggestionsContainer);"auto"===a.width&&(a=this.el.outerWidth()-2,b.width(0this.selectedIndex?(a=e.get(this.selectedIndex),d(a).addClass(b),a):null},selectHint:function(){var a=d.inArray(this.hint, this.suggestions);this.select(a)},select:function(a){this.hide();this.onSelect(a)},moveUp:function(){-1!==this.selectedIndex&&(0===this.selectedIndex?(d(this.suggestionsContainer).children().first().removeClass(this.classes.selected),this.selectedIndex=-1,this.el.val(this.currentValue),this.findBestHint()):this.adjustScroll(this.selectedIndex-1))},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(a){var b=this.activate(a), c,e;b&&(b=b.offsetTop,c=d(this.suggestionsContainer).scrollTop(),e=c+this.options.maxHeight-25,be&&d(this.suggestionsContainer).scrollTop(b-this.options.maxHeight+25),this.el.val(this.getValue(this.suggestions[a].value)),this.signalHint(null))},onSelect:function(a){var b=this.options.onSelect;a=this.suggestions[a];this.currentValue=this.getValue(a.value);this.currentValue!==this.el.val()&&this.el.val(this.currentValue);this.signalHint(null);this.suggestions= [];this.selection=a;d.isFunction(b)&&b.call(this.element,a)},getValue:function(a){var b=this.options.delimiter,c;if(!b)return a;c=this.currentValue;b=c.split(b);return 1===b.length?a:c.substr(0,c.length-b[b.length-1].length)+a},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete");this.disableKillerFn();d(window).off("resize.autocomplete",this.fixPositionCapture);d(this.suggestionsContainer).remove()}};d.fn.yithautocomplete=function(a,b){return 0===arguments.length?this.first().data("autocomplete"): this.each(function(){var c=d(this),e=c.data("autocomplete");if("string"===typeof a){if(e&&"function"===typeof e[a])e[a](b)}else e&&e.dispose&&e.dispose(),e=new g(this,a),c.data("autocomplete",e)})}});}catch(e){} try{!function(a){a.fn.hoverIntent=function(b,c,d){var e={interval:100,sensitivity:6,timeout:0};e="object"==typeof b?a.extend(e,b):a.isFunction(c)?a.extend(e,{over:b,out:c,selector:d}):a.extend(e,{over:b,out:b,selector:c});var f,g,h,i,j=function(a){f=a.pageX,g=a.pageY},k=function(b,c){return c.hoverIntent_t=clearTimeout(c.hoverIntent_t),Math.sqrt((h-f)*(h-f)+(i-g)*(i-g)) =0&&o>i;i+=n){var a=u?u[i]:i;e=r(e,t[a],a,t)}return e}return function(r,e,u,i){e=b(e,i,4);var o=!k(r)&&m.keys(r),a=(o||r).length,c=n>0?0:a-1;return arguments.length<3&&(u=r[o?o[c]:c],c+=n),t(r,e,u,o,c,a)}}function t(n){return function(t,r,e){r=x(r,e);for(var u=O(t),i=n>0?0:u-1;i>=0&&u>i;i+=n)if(r(t[i],i,t))return i;return-1}}function r(n,t,r){return function(e,u,i){var o=0,a=O(e);if("number"==typeof i)n>0?o=i>=0?i:Math.max(i+a,o):a=i>=0?Math.min(i+1,a):i+a+1;else if(r&&i&&a)return i=r(e,u),e[i]===u?i:-1;if(u!==u)return i=t(l.call(e,o,a),m.isNaN),i>=0?i+o:-1;for(i=n>0?o:a-1;i>=0&&a>i;i+=n)if(e[i]===u)return i;return-1}}function e(n,t){var r=I.length,e=n.constructor,u=m.isFunction(e)&&e.prototype||a,i="constructor";for(m.has(n,i)&&!m.contains(t,i)&&t.push(i);r--;)i=I[r],i in n&&n[i]!==u[i]&&!m.contains(t,i)&&t.push(i)}var u=this,i=u._,o=Array.prototype,a=Object.prototype,c=Function.prototype,f=o.push,l=o.slice,s=a.toString,p=a.hasOwnProperty,h=Array.isArray,v=Object.keys,g=c.bind,y=Object.create,d=function(){},m=function(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=m),exports._=m):u._=m,m.VERSION="1.8.3";var b=function(n,t,r){if(t===void 0)return n;switch(null==r?3:r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,i){return n.call(t,r,e,u,i)}}return function(){return n.apply(t,arguments)}},x=function(n,t,r){return null==n?m.identity:m.isFunction(n)?b(n,t,r):m.isObject(n)?m.matcher(n):m.property(n)};m.iteratee=function(n,t){return x(n,t,1/0)};var _=function(n,t){return function(r){var e=arguments.length;if(2>e||null==r)return r;for(var u=1;e>u;u++)for(var i=arguments[u],o=n(i),a=o.length,c=0;a>c;c++){var f=o[c];t&&r[f]!==void 0||(r[f]=i[f])}return r}},j=function(n){if(!m.isObject(n))return{};if(y)return y(n);d.prototype=n;var t=new d;return d.prototype=null,t},w=function(n){return function(t){return null==t?void 0:t[n]}},A=Math.pow(2,53)-1,O=w("length"),k=function(n){var t=O(n);return"number"==typeof t&&t>=0&&A>=t};m.each=m.forEach=function(n,t,r){t=b(t,r);var e,u;if(k(n))for(e=0,u=n.length;u>e;e++)t(n[e],e,n);else{var i=m.keys(n);for(e=0,u=i.length;u>e;e++)t(n[i[e]],i[e],n)}return n},m.map=m.collect=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=Array(u),o=0;u>o;o++){var a=e?e[o]:o;i[o]=t(n[a],a,n)}return i},m.reduce=m.foldl=m.inject=n(1),m.reduceRight=m.foldr=n(-1),m.find=m.detect=function(n,t,r){var e;return e=k(n)?m.findIndex(n,t,r):m.findKey(n,t,r),e!==void 0&&e!==-1?n[e]:void 0},m.filter=m.select=function(n,t,r){var e=[];return t=x(t,r),m.each(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e},m.reject=function(n,t,r){return m.filter(n,m.negate(x(t)),r)},m.every=m.all=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(!t(n[o],o,n))return!1}return!0},m.some=m.any=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(t(n[o],o,n))return!0}return!1},m.contains=m.includes=m.include=function(n,t,r,e){return k(n)||(n=m.values(n)),("number"!=typeof r||e)&&(r=0),m.indexOf(n,t,r)>=0},m.invoke=function(n,t){var r=l.call(arguments,2),e=m.isFunction(t);return m.map(n,function(n){var u=e?t:n[t];return null==u?u:u.apply(n,r)})},m.pluck=function(n,t){return m.map(n,m.property(t))},m.where=function(n,t){return m.filter(n,m.matcher(t))},m.findWhere=function(n,t){return m.find(n,m.matcher(t))},m.max=function(n,t,r){var e,u,i=-1/0,o=-1/0;if(null==t&&null!=n){n=k(n)?n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],e>i&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(u>o||u===-1/0&&i===-1/0)&&(i=n,o=u)});return i},m.min=function(n,t,r){var e,u,i=1/0,o=1/0;if(null==t&&null!=n){n=k(n)?n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],i>e&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(o>u||1/0===u&&1/0===i)&&(i=n,o=u)});return i},m.shuffle=function(n){for(var t,r=k(n)?n:m.values(n),e=r.length,u=Array(e),i=0;e>i;i++)t=m.random(0,i),t!==i&&(u[i]=u[t]),u[t]=r[i];return u},m.sample=function(n,t,r){return null==t||r?(k(n)||(n=m.values(n)),n[m.random(n.length-1)]):m.shuffle(n).slice(0,Math.max(0,t))},m.sortBy=function(n,t,r){return t=x(t,r),m.pluck(m.map(n,function(n,r,e){return{value:n,index:r,criteria:t(n,r,e)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index-t.index}),"value")};var F=function(n){return function(t,r,e){var u={};return r=x(r,e),m.each(t,function(e,i){var o=r(e,i,t);n(u,e,o)}),u}};m.groupBy=F(function(n,t,r){m.has(n,r)?n[r].push(t):n[r]=[t]}),m.indexBy=F(function(n,t,r){n[r]=t}),m.countBy=F(function(n,t,r){m.has(n,r)?n[r]++:n[r]=1}),m.toArray=function(n){return n?m.isArray(n)?l.call(n):k(n)?m.map(n,m.identity):m.values(n):[]},m.size=function(n){return null==n?0:k(n)?n.length:m.keys(n).length},m.partition=function(n,t,r){t=x(t,r);var e=[],u=[];return m.each(n,function(n,r,i){(t(n,r,i)?e:u).push(n)}),[e,u]},m.first=m.head=m.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:m.initial(n,n.length-t)},m.initial=function(n,t,r){return l.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))},m.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:m.rest(n,Math.max(0,n.length-t))},m.rest=m.tail=m.drop=function(n,t,r){return l.call(n,null==t||r?1:t)},m.compact=function(n){return m.filter(n,m.identity)};var S=function(n,t,r,e){for(var u=[],i=0,o=e||0,a=O(n);a>o;o++){var c=n[o];if(k(c)&&(m.isArray(c)||m.isArguments(c))){t||(c=S(c,t,r));var f=0,l=c.length;for(u.length+=l;l>f;)u[i++]=c[f++]}else r||(u[i++]=c)}return u};m.flatten=function(n,t){return S(n,t,!1)},m.without=function(n){return m.difference(n,l.call(arguments,1))},m.uniq=m.unique=function(n,t,r,e){m.isBoolean(t)||(e=r,r=t,t=!1),null!=r&&(r=x(r,e));for(var u=[],i=[],o=0,a=O(n);a>o;o++){var c=n[o],f=r?r(c,o,n):c;t?(o&&i===f||u.push(c),i=f):r?m.contains(i,f)||(i.push(f),u.push(c)):m.contains(u,c)||u.push(c)}return u},m.union=function(){return m.uniq(S(arguments,!0,!0))},m.intersection=function(n){for(var t=[],r=arguments.length,e=0,u=O(n);u>e;e++){var i=n[e];if(!m.contains(t,i)){for(var o=1;r>o&&m.contains(arguments[o],i);o++);o===r&&t.push(i)}}return t},m.difference=function(n){var t=S(arguments,!0,!0,1);return m.filter(n,function(n){return!m.contains(t,n)})},m.zip=function(){return m.unzip(arguments)},m.unzip=function(n){for(var t=n&&m.max(n,O).length||0,r=Array(t),e=0;t>e;e++)r[e]=m.pluck(n,e);return r},m.object=function(n,t){for(var r={},e=0,u=O(n);u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},m.findIndex=t(1),m.findLastIndex=t(-1),m.sortedIndex=function(n,t,r,e){r=x(r,e,1);for(var u=r(t),i=0,o=O(n);o>i;){var a=Math.floor((i+o)/2);r(n[a])i;i++,n+=r)u[i]=n;return u};var E=function(n,t,r,e,u){if(!(e instanceof t))return n.apply(r,u);var i=j(n.prototype),o=n.apply(i,u);return m.isObject(o)?o:i};m.bind=function(n,t){if(g&&n.bind===g)return g.apply(n,l.call(arguments,1));if(!m.isFunction(n))throw new TypeError("Bind must be called on a function");var r=l.call(arguments,2),e=function(){return E(n,e,t,this,r.concat(l.call(arguments)))};return e},m.partial=function(n){var t=l.call(arguments,1),r=function(){for(var e=0,u=t.length,i=Array(u),o=0;u>o;o++)i[o]=t[o]===m?arguments[e++]:t[o];for(;e =e)throw new Error("bindAll must be passed function names");for(t=1;e>t;t++)r=arguments[t],n[r]=m.bind(n[r],n);return n},m.memoize=function(n,t){var r=function(e){var u=r.cache,i=""+(t?t.apply(this,arguments):e);return m.has(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return r.cache={},r},m.delay=function(n,t){var r=l.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},m.defer=m.partial(m.delay,m,1),m.throttle=function(n,t,r){var e,u,i,o=null,a=0;r||(r={});var c=function(){a=r.leading===!1?0:m.now(),o=null,i=n.apply(e,u),o||(e=u=null)};return function(){var f=m.now();a||r.leading!==!1||(a=f);var l=t-(f-a);return e=this,u=arguments,0>=l||l>t?(o&&(clearTimeout(o),o=null),a=f,i=n.apply(e,u),o||(e=u=null)):o||r.trailing===!1||(o=setTimeout(c,l)),i}},m.debounce=function(n,t,r){var e,u,i,o,a,c=function(){var f=m.now()-o;t>f&&f>=0?e=setTimeout(c,t-f):(e=null,r||(a=n.apply(i,u),e||(i=u=null)))};return function(){i=this,u=arguments,o=m.now();var f=r&&!e;return e||(e=setTimeout(c,t)),f&&(a=n.apply(i,u),i=u=null),a}},m.wrap=function(n,t){return m.partial(t,n)},m.negate=function(n){return function(){return!n.apply(this,arguments)}},m.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},m.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},m.before=function(n,t){var r;return function(){return--n>0&&(r=t.apply(this,arguments)),1>=n&&(t=null),r}},m.once=m.partial(m.before,2);var M=!{toString:null}.propertyIsEnumerable("toString"),I=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];m.keys=function(n){if(!m.isObject(n))return[];if(v)return v(n);var t=[];for(var r in n)m.has(n,r)&&t.push(r);return M&&e(n,t),t},m.allKeys=function(n){if(!m.isObject(n))return[];var t=[];for(var r in n)t.push(r);return M&&e(n,t),t},m.values=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=n[t[u]];return e},m.mapObject=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=u.length,o={},a=0;i>a;a++)e=u[a],o[e]=t(n[e],e,n);return o},m.pairs=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e},m.invert=function(n){for(var t={},r=m.keys(n),e=0,u=r.length;u>e;e++)t[n[r[e]]]=r[e];return t},m.functions=m.methods=function(n){var t=[];for(var r in n)m.isFunction(n[r])&&t.push(r);return t.sort()},m.extend=_(m.allKeys),m.extendOwn=m.assign=_(m.keys),m.findKey=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=0,o=u.length;o>i;i++)if(e=u[i],t(n[e],e,n))return e},m.pick=function(n,t,r){var e,u,i={},o=n;if(null==o)return i;m.isFunction(t)?(u=m.allKeys(o),e=b(t,r)):(u=S(arguments,!1,!1,1),e=function(n,t,r){return t in r},o=Object(o));for(var a=0,c=u.length;c>a;a++){var f=u[a],l=o[f];e(l,f,o)&&(i[f]=l)}return i},m.omit=function(n,t,r){if(m.isFunction(t))t=m.negate(t);else{var e=m.map(S(arguments,!1,!1,1),String);t=function(n,t){return!m.contains(e,t)}}return m.pick(n,t,r)},m.defaults=_(m.allKeys,!0),m.create=function(n,t){var r=j(n);return t&&m.extendOwn(r,t),r},m.clone=function(n){return m.isObject(n)?m.isArray(n)?n.slice():m.extend({},n):n},m.tap=function(n,t){return t(n),n},m.isMatch=function(n,t){var r=m.keys(t),e=r.length;if(null==n)return!e;for(var u=Object(n),i=0;e>i;i++){var o=r[i];if(t[o]!==u[o]||!(o in u))return!1}return!0};var N=function(n,t,r,e){if(n===t)return 0!==n||1/n===1/t;if(null==n||null==t)return n===t;n instanceof m&&(n=n._wrapped),t instanceof m&&(t=t._wrapped);var u=s.call(n);if(u!==s.call(t))return!1;switch(u){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!==+n?+t!==+t:0===+n?1/+n===1/t:+n===+t;case"[object Date]":case"[object Boolean]":return+n===+t}var i="[object Array]"===u;if(!i){if("object"!=typeof n||"object"!=typeof t)return!1;var o=n.constructor,a=t.constructor;if(o!==a&&!(m.isFunction(o)&&o instanceof o&&m.isFunction(a)&&a instanceof a)&&"constructor"in n&&"constructor"in t)return!1}r=r||[],e=e||[];for(var c=r.length;c--;)if(r[c]===n)return e[c]===t;if(r.push(n),e.push(t),i){if(c=n.length,c!==t.length)return!1;for(;c--;)if(!N(n[c],t[c],r,e))return!1}else{var f,l=m.keys(n);if(c=l.length,m.keys(t).length!==c)return!1;for(;c--;)if(f=l[c],!m.has(t,f)||!N(n[f],t[f],r,e))return!1}return r.pop(),e.pop(),!0};m.isEqual=function(n,t){return N(n,t)},m.isEmpty=function(n){return null==n?!0:k(n)&&(m.isArray(n)||m.isString(n)||m.isArguments(n))?0===n.length:0===m.keys(n).length},m.isElement=function(n){return!(!n||1!==n.nodeType)},m.isArray=h||function(n){return"[object Array]"===s.call(n)},m.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},m.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(n){m["is"+n]=function(t){return s.call(t)==="[object "+n+"]"}}),m.isArguments(arguments)||(m.isArguments=function(n){return m.has(n,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(m.isFunction=function(n){return"function"==typeof n||!1}),m.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},m.isNaN=function(n){return m.isNumber(n)&&n!==+n},m.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===s.call(n)},m.isNull=function(n){return null===n},m.isUndefined=function(n){return n===void 0},m.has=function(n,t){return null!=n&&p.call(n,t)},m.noConflict=function(){return u._=i,this},m.identity=function(n){return n},m.constant=function(n){return function(){return n}},m.noop=function(){},m.property=w,m.propertyOf=function(n){return null==n?function(){}:function(t){return n[t]}},m.matcher=m.matches=function(n){return n=m.extendOwn({},n),function(t){return m.isMatch(t,n)}},m.times=function(n,t,r){var e=Array(Math.max(0,n));t=b(t,r,1);for(var u=0;n>u;u++)e[u]=t(u);return e},m.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},m.now=Date.now||function(){return(new Date).getTime()};var B={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},T=m.invert(B),R=function(n){var t=function(t){return n[t]},r="(?:"+m.keys(n).join("|")+")",e=RegExp(r),u=RegExp(r,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,t):n}};m.escape=R(B),m.unescape=R(T),m.result=function(n,t,r){var e=null==n?void 0:n[t];return e===void 0&&(e=r),m.isFunction(e)?e.call(n):e};var q=0;m.uniqueId=function(n){var t=++q+"";return n?n+t:t},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},D=/\\|'|\r|\n|\u2028|\u2029/g,L=function(n){return"\\"+z[n]};m.template=function(n,t,r){!t&&r&&(t=r),t=m.defaults({},t,m.templateSettings);var e=RegExp([(t.escape||K).source,(t.interpolate||K).source,(t.evaluate||K).source].join("|")+"|$","g"),u=0,i="__p+='";n.replace(e,function(t,r,e,o,a){return i+=n.slice(u,a).replace(D,L),u=a+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var o=new Function(t.variable||"obj","_",i)}catch(a){throw a.source=i,a}var c=function(n){return o.call(this,n,m)},f=t.variable||"obj";return c.source="function("+f+"){\n"+i+"}",c},m.chain=function(n){var t=m(n);return t._chain=!0,t};var P=function(n,t){return n._chain?m(t).chain():t};m.mixin=function(n){m.each(m.functions(n),function(t){var r=m[t]=n[t];m.prototype[t]=function(){var n=[this._wrapped];return f.apply(n,arguments),P(this,r.apply(m,n))}})},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=o[n];m.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!==n&&"splice"!==n||0!==r.length||delete r[0],P(this,r)}}),m.each(["concat","join","slice"],function(n){var t=o[n];m.prototype[n]=function(){return P(this,t.apply(this._wrapped,arguments))}}),m.prototype.value=function(){return this._wrapped},m.prototype.valueOf=m.prototype.toJSON=m.prototype.value,m.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return m})}).call(this);}catch(e){} try{window.wp=window.wp||{},function(a){var b="undefined"==typeof _wpUtilSettings?{}:_wpUtilSettings;wp.template=_.memoize(function(b){var c,d={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(e){return(c=c||_.template(a("#tmpl-"+b).html(),d))(e)}}),wp.ajax={settings:b.ajax||{},post:function(a,b){return wp.ajax.send({data:_.isObject(a)?a:_.extend(b||{},{action:a})})},send:function(b,c){var d,e;return _.isObject(b)?c=b:(c=c||{},c.data=_.extend(c.data||{},{action:b})),c=_.defaults(c||{},{type:"POST",url:wp.ajax.settings.url,context:this}),e=a.Deferred(function(b){c.success&&b.done(c.success),c.error&&b.fail(c.error),delete c.success,delete c.error,b.jqXHR=a.ajax(c).done(function(a){"1"!==a&&1!==a||(a={success:!0}),_.isObject(a)&&!_.isUndefined(a.success)?b[a.success?"resolveWith":"rejectWith"](this,[a.data]):b.rejectWith(this,[a])}).fail(function(){b.rejectWith(this,arguments)})}),d=e.promise(),d.abort=function(){return e.jqXHR.abort(),this},d}}}(jQuery);}catch(e){} try{!function(a,b,c,d){var e=function(a){this.$form=a,this.$attributeFields=a.find(".variations select"),this.$singleVariation=a.find(".single_variation"),this.$singleVariationWrap=a.find(".single_variation_wrap"),this.$resetVariations=a.find(".reset_variations"),this.$product=a.closest(".product"),this.variationData=a.data("product_variations"),this.useAjax=!1===this.variationData,this.xhr=!1,this.$singleVariationWrap.show(),this.$form.unbind("check_variations update_variation_values found_variation"),this.$resetVariations.unbind("click"),this.$attributeFields.unbind("change "),this.getChosenAttributes=this.getChosenAttributes.bind(this),this.findMatchingVariations=this.findMatchingVariations.bind(this),this.isMatch=this.isMatch.bind(this),this.toggleResetLink=this.toggleResetLink.bind(this),a.on("click",".reset_variations",{variationForm:this},this.onReset),a.on("reload_product_variations",{variationForm:this},this.onReload),a.on("hide_variation",{variationForm:this},this.onHide),a.on("show_variation",{variationForm:this},this.onShow),a.on("click",".single_add_to_cart_button",{variationForm:this},this.onAddToCart),a.on("reset_data",{variationForm:this},this.onResetDisplayedVariation),a.on("reset_image",{variationForm:this},this.onResetImage),a.on("change",".variations select",{variationForm:this},this.onChange),a.on("found_variation",{variationForm:this},this.onFoundVariation),a.on("check_variations",{variationForm:this},this.onFindVariation),a.on("update_variation_values",{variationForm:this},this.onUpdateAttributes),a.trigger("check_variations"),a.trigger("wc_variation_form")};e.prototype.onReset=function(a){a.preventDefault(),a.data.variationForm.$attributeFields.val("").change(),a.data.variationForm.$form.trigger("reset_data")},e.prototype.onReload=function(a){var b=a.data.variationForm;b.variationData=b.$form.data("product_variations"),b.useAjax=!1===b.variationData,b.$form.trigger("check_variations")},e.prototype.onHide=function(a){a.preventDefault(),a.data.variationForm.$form.find(".single_add_to_cart_button").removeClass("wc-variation-is-unavailable").addClass("disabled wc-variation-selection-needed"),a.data.variationForm.$form.find(".woocommerce-variation-add-to-cart").removeClass("woocommerce-variation-add-to-cart-enabled").addClass("woocommerce-variation-add-to-cart-disabled")},e.prototype.onShow=function(a,b,c){a.preventDefault(),c?(a.data.variationForm.$form.find(".single_add_to_cart_button").removeClass("disabled wc-variation-selection-needed wc-variation-is-unavailable"),a.data.variationForm.$form.find(".woocommerce-variation-add-to-cart").removeClass("woocommerce-variation-add-to-cart-disabled").addClass("woocommerce-variation-add-to-cart-enabled")):(a.data.variationForm.$form.find(".single_add_to_cart_button").removeClass("wc-variation-selection-needed").addClass("disabled wc-variation-is-unavailable"),a.data.variationForm.$form.find(".woocommerce-variation-add-to-cart").removeClass("woocommerce-variation-add-to-cart-enabled").addClass("woocommerce-variation-add-to-cart-disabled"))},e.prototype.onAddToCart=function(c){a(this).is(".disabled")&&(c.preventDefault(),a(this).is(".wc-variation-is-unavailable")?b.alert(wc_add_to_cart_variation_params.i18n_unavailable_text):a(this).is(".wc-variation-selection-needed")&&b.alert(wc_add_to_cart_variation_params.i18n_make_a_selection_text))},e.prototype.onResetDisplayedVariation=function(a){var b=a.data.variationForm;b.$product.find(".product_meta").find(".sku").wc_reset_content(),b.$product.find(".product_weight").wc_reset_content(),b.$product.find(".product_dimensions").wc_reset_content(),b.$form.trigger("reset_image"),b.$singleVariation.slideUp(200).trigger("hide_variation")},e.prototype.onResetImage=function(a){a.data.variationForm.$form.wc_variations_image_update(!1)},e.prototype.onFindVariation=function(c){var d=c.data.variationForm,e=d.getChosenAttributes(),f=e.data;if(e.count===e.chosenCount)if(d.useAjax)d.xhr&&d.xhr.abort(),d.$form.block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),f.product_id=parseInt(d.$form.data("product_id"),10),f.custom_data=d.$form.data("custom_data"),d.xhr=a.ajax({url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_variation"),type:"POST",data:f,success:function(a){a?d.$form.trigger("found_variation",[a]):(d.$form.trigger("reset_data"),d.$form.find(".single_variation").after(' '+wc_add_to_cart_variation_params.i18n_no_matching_variations_text+"
"),d.$form.find(".wc-no-matching-variations").slideDown(200))},complete:function(){d.$form.unblock()}});else{d.$form.trigger("update_variation_values");var g=d.findMatchingVariations(d.variationData,f),h=g.shift();h?d.$form.trigger("found_variation",[h]):(b.alert(wc_add_to_cart_variation_params.i18n_no_matching_variations_text),d.$form.trigger("reset_data"))}else d.$form.trigger("update_variation_values"),d.$form.trigger("reset_data");d.toggleResetLink(e.chosenCount>0),a(".product.has-default-attributes > .images").fadeTo(200,1)},e.prototype.onFoundVariation=function(b,c){var d=b.data.variationForm,e=d.$product.find(".product_meta").find(".sku"),f=d.$product.find(".product_weight"),g=d.$product.find(".product_dimensions"),h=d.$singleVariationWrap.find(".quantity"),i=!0,j="",k=!1,l="";c.sku?e.wc_set_content(c.sku):e.wc_reset_content(),c.weight?f.wc_set_content(c.weight):f.wc_reset_content(),c.dimensions?g.wc_set_content(c.dimensions):g.wc_reset_content(),d.$form.wc_variations_image_update(c),c.variation_is_visible?(k=wp.template("variation-template"),j=c.variation_id):k=wp.template("unavailable-variation-template"),l=k({variation:c}),l=l.replace("",""),l=l.replace("",""),d.$singleVariation.html(l),d.$form.find('input[name="variation_id"], input.variation_id').val(c.variation_id).change(),"yes"===c.is_sold_individually?(h.find("input.qty").val("1").attr("min","1").attr("max",""),h.hide()):(h.find("input.qty").attr("min",c.min_qty).attr("max",c.max_qty),h.show()),c.is_purchasable&&c.is_in_stock&&c.variation_is_visible||(i=!1),a.trim(d.$singleVariation.text())?d.$singleVariation.slideDown(200).trigger("show_variation",[c,i]):d.$singleVariation.show().trigger("show_variation",[c,i])},e.prototype.onChange=function(b){var c=b.data.variationForm;c.$form.find('input[name="variation_id"], input.variation_id').val("").change(),c.$form.find(".wc-no-matching-variations").remove(),c.useAjax?c.$form.trigger("check_variations"):(c.$form.trigger("woocommerce_variation_select_change"),c.$form.trigger("check_variations"),a(this).blur()),c.$form.trigger("woocommerce_variation_has_changed")},e.prototype.addSlashes=function(a){return a=a.replace(/'/g,"\\'"),a=a.replace(/"/g,'\\"')},e.prototype.onUpdateAttributes=function(b){var c=b.data.variationForm,d=c.getChosenAttributes(),e=d.data;c.useAjax||(c.$attributeFields.each(function(b,d){var f=a(d),g=f.data("attribute_name")||f.attr("name"),h=a(d).data("show_option_none"),i=":gt(0)",j=0,k=a(""),l=f.val()||"",m=!0;if(!f.data("attribute_html")){var n=f.clone();n.find("option").removeAttr("disabled attached").removeAttr("selected"),f.data("attribute_options",n.find("option"+i).get()),f.data("attribute_html",n.html())}k.html(f.data("attribute_html"));var o=a.extend(!0,{},e);o[g]="";var p=c.findMatchingVariations(c.variationData,o);for(var q in p)if("undefined"!=typeof p[q]){var r=p[q].attributes;for(var s in r)if(r.hasOwnProperty(s)){var t=r[s],u="";s===g&&(p[q].variation_is_active&&(u="enabled"),t?(t=a("").html(t).text(),k.find('option[value="'+c.addSlashes(t)+'"]').addClass("attached "+u)):k.find("option:gt(0)").addClass("attached "+u))}}j=k.find("option.attached").length,!l||0!==j&&0!==k.find('option.attached.enabled[value="'+c.addSlashes(l)+'"]').length||(m=!1),j>0&&l&&m&&"no"===h&&(k.find("option:first").remove(),i=""),k.find("option"+i+":not(.attached)").remove(),f.html(k.html()),f.find("option"+i+":not(.enabled)").prop("disabled",!0),l?m?f.val(l):f.val("").change():f.val("")}),c.$form.trigger("woocommerce_update_variation_values"))},e.prototype.getChosenAttributes=function(){var b={},c=0,d=0;return this.$attributeFields.each(function(){var e=a(this).data("attribute_name")||a(this).attr("name"),f=a(this).val()||"";f.length>0&&d++,c++,b[e]=f}),{count:c,chosenCount:d,data:b}},e.prototype.findMatchingVariations=function(a,b){for(var c=[],d=0;d1?(d.wc_set_variation_attr("src",a.image_src),d.wc_set_variation_attr("title",a.image_title),d.wc_set_variation_attr("alt",a.image_alt),d.wc_set_variation_attr("srcset",a.image_srcset),d.wc_set_variation_attr("sizes",a.image_sizes),e.wc_set_variation_attr("href",a.image_link),e.wc_set_variation_attr("title",a.image_caption)):(d.wc_reset_variation_attr("src"),d.wc_reset_variation_attr("title"),d.wc_reset_variation_attr("alt"),d.wc_reset_variation_attr("srcset"),d.wc_reset_variation_attr("sizes"),e.wc_reset_variation_attr("href"),e.wc_reset_variation_attr("title"))},a(function(){"undefined"!=typeof wc_add_to_cart_variation_params&&a(".variations_form").each(function(){a(this).wc_variation_form()})})}(jQuery,window,document);}catch(e){} try{function vc_js(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_googleplus(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_google_fonts(),vc_gridBehaviour(),vc_rowBehaviour(),vc_googleMapsPointer(),vc_ttaActivation(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}function getSizeName(){var screen_w=jQuery(window).width();return 1170 screen_w?"desktop":768 screen_w?"tablet":300 screen_w?"mobile":300>screen_w?"mobile_portrait":""}function loadScript(url,$obj,callback){var script=document.createElement("script");script.type="text/javascript",script.readyState&&(script.onreadystatechange=function(){"loaded"!==script.readyState&&"complete"!==script.readyState||(script.onreadystatechange=null,callback())}),script.src=url,$obj.get(0).appendChild(script)}function vc_ttaActivation(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var $=window.jQuery,ui={};ui.newPanel=$(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,ui)})}function vc_accordionActivate(event,ui){if(ui.newPanel.length&&ui.newHeader.length){var $pie_charts=ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=ui.newPanel.find(".vc_round-chart"),$line_charts=ui.newPanel.find(".vc_line-chart"),$carousel=ui.newPanel.find('[data-ride="vc_carousel"]');"undefined"!=typeof jQuery.fn.isotope&&ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),vc_carouselBehaviour(ui.newPanel),vc_plugin_flexslider(ui.newPanel),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui.newPanel.parents(".isotope").length&&ui.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}}function initVideoBackgrounds(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}function vc_initVideoBackgrounds(){jQuery("[data-vc-video-bg]").each(function(){var youtubeUrl,youtubeId,$element=jQuery(this);$element.data("vcVideoBg")?(youtubeUrl=$element.data("vcVideoBg"),youtubeId=vcExtractYoutubeId(youtubeUrl),youtubeId&&($element.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground($element,youtubeId)),jQuery(window).on("grid:items:added",function(event,$grid){$element.has($grid).length&&vcResizeVideoBackground($element)})):$element.find(".vc_video-bg").remove()})}function insertYoutubeVideoAsBackground($element,youtubeId,counter){if("undefined"==typeof YT||"undefined"==typeof YT.Player)return counter="undefined"==typeof counter?0:counter,100 parseInt(ver[1]);$call.each(function(index){var $tabs,interval=jQuery(this).attr("data-interval"),tabs_array=[];if($tabs=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(event,ui){wpb_prepare_tab_content(event,ui)},beforeActivate:function(event,ui){1!==ui.newPanel.index()&&ui.newPanel.find(".vc_pie_chart:not(.vc_ready)")},activate:function(event,ui){wpb_prepare_tab_content(event,ui)}}),interval&&0 index?index=$tabs.tabs("length")-1:index>=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)}else{var index=$tabs.tabs("option","active"),length=$tabs.find(".wpb_tab").length;index=jQuery(this).parent().hasClass("wpb_next_slide")?index+1>=length?0:index+1:0>index-1?length-1:index-1,$tabs.tabs("option","active",index)}})})}}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $tabs,$this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0 div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){"undefined"!=typeof jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}}),!0===$this.data("vcDisableKeydown")&&($tabs.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:"undefined"==typeof layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).click(function(e){e.preventDefault();var $thumbs=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),$thumbs.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).bind("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){var $carousel=$parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel");$carousel.each(function(){var $this=jQuery(this);if(!0!==$this.data("carousel_enabled")&&$this.is(":visible")){$this.data("carousel_enabled",!0);var carousel_speed=(getColumnsCount(jQuery(this)),500);jQuery(this).hasClass("columns_count_1")&&(carousel_speed=900);var carousele_li=jQuery(this).find(".wpb_thumbnails-fluid li");carousele_li.css({"margin-right":carousele_li.css("margin-left"),"margin-left":0});var fluid_ul=jQuery(this).find("ul.wpb_thumbnails-fluid");fluid_ul.width(fluid_ul.width()+300),jQuery(window).resize(function(){var before_resize=screen_size;screen_size=getSizeName(),before_resize!=screen_size&&window.setTimeout("location.reload()",20)})}})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,this_element=jQuery(this);if(this_element.hasClass("wpb_slider_nivo")){var sliderSpeed=800,sliderTimeout=1e3*this_element.attr("data-interval");0===sliderTimeout&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:sliderSpeed,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})}else this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){var url=location.href;url.indexOf("#!prettyPhoto")>-1&&(location.hash="")},social_tools:""})}catch(err){window.console&&window.console.log&&console.log(err)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){function fullWidthRow(){var $elements=$('[data-vc-full-width="true"]');$.each($elements,function(key,item){var $el=$(this);$el.addClass("vc_hidden");var $el_full=$el.next(".vc_row-full-width");if($el_full.length||($el_full=$el.parent().next(".vc_row-full-width")),$el_full.length){var el_margin_left=parseInt($el.css("margin-left"),10),el_margin_right=parseInt($el.css("margin-right"),10),offset=0-$el_full.offset().left-el_margin_left,width=$(window).width();if($el.css({position:"relative",left:offset,"box-sizing":"border-box",width:$(window).width()}),!$el.data("vcStretchContent")){var padding=-1*offset;0>padding&&(padding=0);var paddingRight=width-padding-$el_full.width()+el_margin_left+el_margin_right;0>paddingRight&&(paddingRight=0),$el.css({"padding-left":padding+"px","padding-right":paddingRight+"px"})}$el.attr("data-vc-full-width-init","true"),$el.removeClass("vc_hidden"),$(document).trigger("vc-full-width-row-single",{el:$el,offset:offset,marginLeft:el_margin_left,marginRight:el_margin_right,elFull:$el_full,width:width})}}),$(document).trigger("vc-full-width-row",$elements)}function parallaxRow(){var vcSkrollrOptions,callSkrollInit=!1;return window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSpeed,skrollrSize,skrollrStart,skrollrEnd,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),$parallaxElement=$("").addClass("vc_parallax-inner").appendTo($(this)),$parallaxElement.height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),youtubeId=vcExtractYoutubeId(parallaxImage),youtubeId?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):"undefined"!=typeof parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),skrollrSpeed=skrollrSize-100,skrollrStart=-skrollrSpeed,skrollrEnd=0,$parallaxElement.attr("data-bottom-top","top: "+skrollrStart+"%;").attr("data-top-bottom","top: "+skrollrEnd+"%;")}),!(!callSkrollInit||!window.skrollr)&&(vcSkrollrOptions={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(vcSkrollrOptions),window.vcParallaxSkroll)}function fullHeightRow(){var $element=$(".vc_row-o-full-height:first");if($element.length){var $window,windowHeight,offsetTop,fullHeight;$window=$(window),windowHeight=$window.height(),offsetTop=$element.offset().top,offsetTop 0||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){"flex"===$(this).css("display")&&$(this).wrap('')})}var $=window.jQuery;$(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",fullWidthRow).on("resize.vcRowBehaviour",fullHeightRow),fullWidthRow(),fullHeightRow(),fixIeFlexbox(),vc_initVideoBackgrounds(),parallaxRow()}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}});var screen_size=getSizeName();"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event,ui){var $ui_panel,$google_maps,panel=ui.panel||ui.newPanel,$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=panel.find(".vc_round-chart"),$line_charts=panel.find(".vc_line-chart"),$carousel=panel.find('[data-ride="vc_carousel"]');if(vc_carouselBehaviour(),vc_plugin_flexslider(panel),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),$ui_panel=panel.find(".isotope, .wpb_image_grid_ul"),$google_maps=panel.find(".wpb_gmaps_widget"),0<$ui_panel.length&&$ui_panel.isotope("layout"),$google_maps.length&&!$google_maps.is(".map_ready")){var $frame=$google_maps.find("iframe");$frame.attr("src",$frame.attr("src")),$google_maps.addClass("map_ready")}panel.parents(".isotope").length&&panel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),"function"!=typeof window.vc_googleMapsPointer,jQuery(document).ready(function($){window.vc_js()});}catch(e){} try{ (function($){ $.extend({ browserSelector: function(){ (function(a){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera); var hasTouch='ontouchstart' in window||navigator.msMaxTouchPoints; var u=navigator.userAgent, ua=u.toLowerCase(), is=function (t){ return ua.indexOf(t) > -1; }, g='gecko', w='webkit', s='safari', o='opera', h=document.documentElement, b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua)) ? ('ie ie' + parseFloat(navigator.appVersion.split("MSIE")[1])):is('firefox/2') ? g + ' ff2':is('firefox/3.5') ? g + ' ff3 ff3_5':is('firefox/3') ? g + ' ff3':is('gecko/') ? g:is('opera') ? o + (/version\/(\d+)/.test(ua) ? ' ' + o + RegExp.jQuery1:(/opera(\s|\/)(\d+)/.test(ua) ? ' ' + o + RegExp.jQuery2:'')):is('konqueror') ? 'konqueror':is('chrome') ? w + ' chrome':is('iron') ? w + ' iron':is('applewebkit/') ? w + ' ' + s + (/version\/(\d+)/.test(ua) ? ' ' + s + RegExp.jQuery1:''):is('mozilla/') ? g:'', is('j2me') ? 'mobile':is('iphone') ? 'iphone':is('ipod') ? 'ipod':is('mac') ? 'mac':is('darwin') ? 'mac':is('webtv') ? 'webtv':is('win') ? 'win':is('freebsd') ? 'freebsd':(is('x11')||is('linux')) ? 'linux':'', 'js']; c=b.join(' '); if($.browser.mobile){ c +=' mobile'; } if(hasTouch){ c +=' touch'; } h.className +=' ' + c; var isIE11 = !(window.ActiveXObject)&&"ActiveXObject" in window; if(isIE11){ $('html').removeClass('gecko').addClass('ie ie11'); return; }} }); $.browserSelector(); })(jQuery); ;(function (factory){ if(typeof define==='function'&&define.amd){ define(['jquery'], factory); }else if(typeof exports==='object'){ module.exports=factory(require('jquery')); }else{ factory(jQuery); }}(function ($){ var eventNamespace='waitForImages'; $.waitForImages={ hasImageProperties: [ 'backgroundImage', 'listStyleImage', 'borderImage', 'borderCornerImage', 'cursor' ], hasImageAttributes: ['srcset'] }; $.expr[':'].uncached=function (obj){ if(!$(obj).is('img[src][src!=""]')){ return false; } return !obj.complete; }; $.fn.waitForImages=function (){ var allImgsLength=0; var allImgsLoaded=0; var deferred=$.Deferred(); var finishedCallback; var eachCallback; var waitForAll; if($.isPlainObject(arguments[0])){ waitForAll=arguments[0].waitForAll; eachCallback=arguments[0].each; finishedCallback=arguments[0].finished; }else{ if(arguments.length===1&&$.type(arguments[0])==='boolean'){ waitForAll=arguments[0]; }else{ finishedCallback=arguments[0]; eachCallback=arguments[1]; waitForAll=arguments[2]; }} finishedCallback=finishedCallback||$.noop; eachCallback=eachCallback||$.noop; waitForAll = !! waitForAll; if(!$.isFunction(finishedCallback)||!$.isFunction(eachCallback)){ throw new TypeError('An invalid callback was supplied.'); } this.each(function (){ var obj=$(this); var allImgs=[]; var hasImgProperties=$.waitForImages.hasImageProperties||[]; var hasImageAttributes=$.waitForImages.hasImageAttributes||[]; var matchUrl=/url\(\s*(['"]?)(.*?)\1\s*\)/g; if(waitForAll){ obj.find('*').addBack().each(function (){ var element=$(this); if(element.is('img:uncached')){ allImgs.push({ src: element.attr('src'), element: element[0] }); } $.each(hasImgProperties, function (i, property){ var propertyValue=element.css(property); var match; if(!propertyValue){ return true; } while (match=matchUrl.exec(propertyValue)){ allImgs.push({ src: match[2], element: element[0] }); }}); $.each(hasImageAttributes, function (i, attribute){ var attributeValue=element.attr(attribute); var attributeValues; if(!attributeValue){ return true; } attributeValues=attributeValue.split(','); $.each(attributeValues, function(i, value){ value=$.trim(value).split(' ')[0]; allImgs.push({ src: value, element: element[0] }); }); }); }); }else{ obj.find('img:uncached') .each(function (){ allImgs.push({ src: this.src, element: this }); }); } allImgsLength=allImgs.length; allImgsLoaded=0; if(allImgsLength===0){ finishedCallback.call(obj[0]); deferred.resolveWith(obj[0]); } $.each(allImgs, function (i, img){ var image=new Image(); var events = 'load.' + eventNamespace + ' error.' + eventNamespace; $(image).one(events, function me (event){ var eachArguments=[ allImgsLoaded, allImgsLength, event.type=='load' ]; allImgsLoaded++; eachCallback.apply(img.element, eachArguments); deferred.notifyWith(img.element, eachArguments); $(this).off(events, me); if(allImgsLoaded==allImgsLength){ finishedCallback.call(obj[0]); deferred.resolveWith(obj[0]); return false; }}); image.src=img.src; }); }); return deferred.promise(); };})); (function (ns){ 'use strict'; var map={ protocol: 'protocol', host: 'hostname', port: 'port', path: 'pathname', query: 'search', hash: 'hash' }; var defaultPorts={ ftp: 21, gopher: 70, http: 80, https: 443, ws: 80, wss: 443 }; function parse (self, url){ var currUrl, link, i, auth; if(typeof document==='undefined'&&typeof require==='function'){ currUrl='file://' + (process.platform.match(/^win/i) ? '/':'') + require('fs').realpathSync('.'); if(url&&url.charAt(0)!=='/'&&!url.match(/^\w+:\/\//)){ url=currUrl + require('path').sep + url; } link=require('url').parse(url||currUrl); }else{ currUrl=document.location.href; link=document.createElement('a'); link.href=url||currUrl; } auth=(url||currUrl).match(/\/\/(.*?)(?::(.*?))?@/)||[]; for (i in map){ self[i]=link[map[i]]||''; } self.protocol=self.protocol.replace(/:$/, ''); self.query=self.query.replace(/^\?/, ''); self.hash=decode(self.hash.replace(/^#/, '')); self.user=decode(auth[1]||''); self.pass=decode(auth[2]||''); self.port=( defaultPorts[self.protocol]==self.port||self.port==0 ) ? '':self.port; if(!self.protocol&&!/^([a-z]+:)?\/\/\/?/.test(url)){ var base=new Url(currUrl.match(/(.*\/)/)[0]); var basePath=base.path.split('/'); var selfPath=self.path.split('/'); var props=['protocol', 'user', 'pass', 'host', 'port']; var s=props.length; basePath.pop(); for (i=0; i < s; i++){ self[props[i]]=base[props[i]]; } while (selfPath[0]=='..'){ basePath.pop(); selfPath.shift(); } self.path = (url.charAt(0)!='/' ? basePath.join('/'):'') + '/' + selfPath.join('/') ; }else{ self.path=self.path.replace(/^\/?/, '/'); } self.paths((self.path.charAt(0)=='/' ? self.path.slice(1):self.path).split('/') ); self.query=new QueryString(self.query); } function encode (s){ return encodeURIComponent(s).replace(/'/g, '%27'); } function decode (s){ s=s.replace(/\+/g, ' '); s=s.replace(/%([ef][0-9a-f])%([89ab][0-9a-f])%([89ab][0-9a-f])/gi, function (code, hex1, hex2, hex3){ var n1=parseInt(hex1, 16) - 0xE0; var n2=parseInt(hex2, 16) - 0x80; if(n1===0&&n2 < 32){ return code; } var n3=parseInt(hex3, 16) - 0x80; var n=(n1 << 12) + (n2 << 6) + n3; if(n > 0xFFFF){ return code; } return String.fromCharCode(n); } ); s=s.replace(/%([cd][0-9a-f])%([89ab][0-9a-f])/gi, function (code, hex1, hex2){ var n1=parseInt(hex1, 16) - 0xC0; if(n1 < 2){ return code; } var n2=parseInt(hex2, 16) - 0x80; return String.fromCharCode((n1 << 6) + n2); } ); return s.replace(/%([0-7][0-9a-f])/gi, function (code, hex){ return String.fromCharCode(parseInt(hex, 16)); } ); } function QueryString (qs){ var re=/([^=&]+)(=([^&]*))?/g; var match; while ((match=re.exec(qs))){ var key=decodeURIComponent(match[1].replace(/\+/g, ' ')); var value=match[3] ? decode(match[3]):''; if(!(this[key]===undefined||this[key]===null)){ if(!(this[key] instanceof Array)){ this[key]=[this[key]]; } this[key].push(value); }else{ this[key]=value; }} } QueryString.prototype.toString=function (){ var s=''; var e=encode; var i, ii; for (i in this){ if(this[i] instanceof Function||this[i]===null){ continue; } if(this[i] instanceof Array){ var len=this[i].length; if(len){ for (ii=0; ii < len; ii++){ s +=s ? '&':''; s +=e(i) + '=' + e(this[i][ii]); }}else{ s +=(s ? '&':'') + e(i) + '='; }}else{ s +=s ? '&':''; s +=e(i) + '=' + e(this[i]); }} return s; }; function Url (url){ parse(this, url); } Url.prototype.clearQuery=function (){ for (var key in this.query){ if(!(this.query[key] instanceof Function)){ delete this.query[key]; }} return this; }; Url.prototype.queryLength=function (){ var count=0; var key; for (key in this){ if(!(this[key] instanceof Function)){ count++; }} return count; }; Url.prototype.isEmptyQuery=function (){ return this.queryLength()===0; }; Url.prototype.paths=function (paths){ var prefix=''; var i=0; var s; if(paths&&paths.length&&paths + ''!==paths){ if(this.isAbsolute()){ prefix='/'; } for (s=paths.length; i < s; i++){ paths[i] = !i&&paths[i].match(/^\w:$/) ? paths[i] : encode(paths[i]); } this.path=prefix + paths.join('/'); } paths=(this.path.charAt(0)==='/' ? this.path.slice(1):this.path).split('/'); for (i=0, s=paths.length; i < s; i++){ paths[i]=decode(paths[i]); } return paths; }; Url.prototype.encode=encode; Url.prototype.decode=decode; Url.prototype.isAbsolute=function (){ return this.protocol||this.path.charAt(0)==='/'; }; Url.prototype.toString=function (){ return ( (this.protocol&&(this.protocol + '://')) + (this.user&&( encode(this.user) + (this.pass&&(':' + encode(this.pass)) ) + '@')) + (this.host&&this.host) + (this.port&&(':' + this.port)) + (this.path&&this.path) + (this.query.toString()&&('?' + this.query)) + (this.hash&&('#' + encode(this.hash))) ); }; ns[ns.exports ? 'exports':'Url']=Url; }(typeof module!=='undefined'&&module.exports ? module:window)); var RtlDetectLib={ _escapeRegExpPattern: function (str){ if(typeof str!=='string'){ return str; } return str.replace(/([\.\*\+\^\$\[\]\\\(\)\|\{\}\,\-\:\?])/g, '\\$1'); }, _toLowerCase: function (str, reserveReturnValue){ if(typeof str!=='string'){ return reserveReturnValue&&str; } return str.toLowerCase(); }, _toUpperCase: function (str, reserveReturnValue){ if(typeof str!=='string'){ return reserveReturnValue&&str; } return str.toUpperCase(); }, _trim: function (str, delimiter, reserveReturnValue){ var patterns=[], self=this, regexp, addPatterns=function (pattern){ patterns.push('^' + pattern + '+|' + pattern + '+$'); }; if(typeof delimiter==='boolean'){ reserveReturnValue=delimiter; delimiter=null; } if(typeof str!=='string'){ return reserveReturnValue&&str; } if(Array.isArray(delimiter)){ delimiter.map(function(item){ var pattern=self._escapeRegExpPattern(item); addPatterns(pattern); }); } if(typeof delimiter==='string'){ var patternDelimiter=self._escapeRegExpPattern(delimiter); addPatterns(patternDelimiter); } if(!delimiter){ addPatterns('\\s'); } var pattern='(' + patterns.join('|') + ')'; regexp=new RegExp(pattern, 'g'); while(str.match(regexp)){ str=str.replace(regexp, ''); } return str; }, _parseLocale:function (strLocale){ var self=this, regex=/^([a-zA-Z]*)([_\-a-zA-Z]*)$/, matches=regex.exec(strLocale), parsedLocale, lang, countryCode; if(!strLocale||!matches){ return; } matches[2]=self._trim(matches[2], ['-', '_']); lang=self._toLowerCase(matches[1]); countryCode=self._toUpperCase(matches[2])||countryCode; parsedLocale={ lang: lang, countryCode: countryCode }; return parsedLocale; }, isRtlLang: function (strLocale){ var self=this, objLocale=self._parseLocale(strLocale); if(!objLocale){ return; } return (self._BIDI_RTL_LANGS.indexOf(objLocale.lang) >=0); }, getLangDir: function (strLocale){ var self=this; return self.isRtlLang(strLocale) ? 'rtl':'ltr'; }}; Object.defineProperty(RtlDetectLib, '_BIDI_RTL_LANGS', { value: [ 'ar', 'arc', 'bcc', 'bqi', 'ckb', 'dv', 'fa', 'glk', 'he', 'ku', 'mzn', 'pnb', 'ps', 'sd', 'ug', 'ur', 'yi' ], writable: false, enumerable: true, configurable: false }); (function($){ if(RtlDetectLib.isRtlLang(window.navigator.userLanguage||window.navigator.language)){ $('html').addClass('browser-rtl'); }}).apply(this, [jQuery]); window.theme={}; (function(theme, $){ theme=theme||{}; $.extend(theme, { rtl: js_porto_vars.rtl=='1' ? true:false, rtl_browser: $('html').hasClass('browser-rtl'), ajax_url: js_porto_vars.ajax_url, request_error: js_porto_vars.request_error, change_logo: js_porto_vars.change_logo=='1' ? true:false, show_sticky_header: js_porto_vars.show_sticky_header=='1' ? true:false, show_sticky_header_tablet: js_porto_vars.show_sticky_header_tablet=='1' ? true:false, show_sticky_header_mobile: js_porto_vars.show_sticky_header_mobile=='1' ? true:false, category_ajax: js_porto_vars.category_ajax=='1' ? true:false, prdctfltr_ajax: js_porto_vars.prdctfltr_ajax=='1' ? true:false, show_minicart: js_porto_vars.show_minicart=='1' ? true:false, container_width: parseInt(js_porto_vars.container_width), grid_gutter_width: parseInt(js_porto_vars.grid_gutter_width), screen_lg: parseInt(js_porto_vars.screen_lg), slider_loop: js_porto_vars.slider_loop=='1' ? true:false, slider_autoplay: js_porto_vars.slider_autoplay=='1' ? true:false, slider_autoheight: js_porto_vars.slider_autoheight=='1' ? true:false, slider_speed: js_porto_vars.slider_speed ? js_porto_vars.slider_speed:5000, slider_nav: js_porto_vars.slider_nav=='1' ? true:false, slider_nav_hover: js_porto_vars.slider_nav_hover=='1' ? true:false, slider_margin: js_porto_vars.slider_margin=='1' ? 40:0, slider_dots: js_porto_vars.slider_dots=='1' ? true:false, slider_animatein: js_porto_vars.slider_animatein ? js_porto_vars.slider_animatein:'', slider_animateout: js_porto_vars.slider_animateout ? js_porto_vars.slider_animateout:'', product_thumbs_count: js_porto_vars.product_thumbs_count ? js_porto_vars.product_thumbs_count:4, product_zoom: js_porto_vars.product_zoom=='1' ? true:false, product_zoom_mobile: js_porto_vars.product_zoom_mobile=='1' ? true:false, product_image_popup: js_porto_vars.product_image_popup=='1' ? 'fadeOut':false, hoverIntentConfig: { sensitivity: 2, interval: 0, timeout: 0 }, owlConfig: { rtl: js_porto_vars.rtl=='1' ? true:false, loop:js_porto_vars.slider_loop=='1' ? true:false, autoplay:js_porto_vars.slider_autoplay=='1' ? true:false, autoHeight:js_porto_vars.slider_autoheight=='1' ? true:false, autoplayTimeout: js_porto_vars.slider_speed ? js_porto_vars.slider_speed:5000, autoplayHoverPause:true, lazyLoad: true, nav: js_porto_vars.slider_nav=='1' ? true:false, navText: ["", ""], dots: js_porto_vars.slider_dots=='1' ? true:false, stagePadding: (js_porto_vars.slider_nav_hover!='1'&&js_porto_vars.slider_margin=='1') ? 40:0, animateOut: js_porto_vars.slider_animateout ? js_porto_vars.slider_animateout:'', animateIn: js_porto_vars.slider_animatein ? js_porto_vars.slider_animatein:'' }, mfpConfig: { tClose: js_porto_vars.popup_close, tLoading: '', gallery: { tPrev: js_porto_vars.popup_prev, tNext: js_porto_vars.popup_next, tCounter: js_porto_vars.mfp_counter }, image: { tError: js_porto_vars.mfp_img_error }, ajax: { tError: js_porto_vars.mfp_ajax_error }, callbacks: { open: function(){ $('body').addClass('lightbox-opened'); var fixed=this.st.fixedContentPos; if(fixed){ $('#header.sticky-header .header-main.sticky, #header.sticky-header .main-menu-wrap, .fixed-header #header.sticky-header .header-main, .fixed-header #header.sticky-header .main-menu-wrap').css(theme.rtl_browser?'left':'right', theme.getScrollbarWidth()); } var that=$(this._lastFocusedEl); if(( that.parents('.portfolios-lightbox').hasClass('with-thumbs'))&&$(document).width() >=1024){ var portfolio_lightbox_thumbnails_base=that.parents('.portfolios-lightbox.with-thumbs').find('.porto-portfolios-lighbox-thumbnails').clone(), magnificPopup=$.magnificPopup.instance; $('body').prepend(portfolio_lightbox_thumbnails_base); var $portfolios_lightbox_thumbnails=$('body > .porto-portfolios-lighbox-thumbnails'), $portfolios_lightbox_thumbnails_carousel=$portfolios_lightbox_thumbnails.children('.owl-carousel'); $portfolios_lightbox_thumbnails_carousel.themeCarousel($portfolios_lightbox_thumbnails_carousel.data('plugin-options')); $portfolios_lightbox_thumbnails_carousel.trigger('refresh.owl.carousel'); var $carousel_items_wrapper=$portfolios_lightbox_thumbnails_carousel.find('.owl-stage'); $carousel_items_wrapper.find('.owl-item').removeClass('current'); $carousel_items_wrapper.find('.owl-item').eq(magnificPopup.currItem.index).addClass('current'); $.magnificPopup.instance.next=function(){ var magnificPopup=$.magnificPopup.instance; $.magnificPopup.proto.next.call(this); $carousel_items_wrapper.find('.owl-item').removeClass('current'); $carousel_items_wrapper.find('.owl-item').eq(magnificPopup.currItem.index).addClass('current'); }; $.magnificPopup.instance.prev=function(){ var magnificPopup=$.magnificPopup.instance; $.magnificPopup.proto.prev.call(this); $carousel_items_wrapper.find('.owl-item').removeClass('current'); $carousel_items_wrapper.find('.owl-item').eq(magnificPopup.currItem.index).addClass('current'); }; $carousel_items_wrapper.find('.owl-item').on('click', function(){ $carousel_items_wrapper.find('.owl-item').removeClass('current'); $.magnificPopup.instance.goTo($carousel_items_wrapper.find('.owl-item').index(this)); $(this).addClass('current'); }); } }, close: function(){ $('body').removeClass('lightbox-opened'); var fixed=this.st.fixedContentPos; if(fixed){ $('#header.sticky-header .header-main.sticky, #header.sticky-header .main-menu-wrap, .fixed-header #header.sticky-header .header-main, .fixed-header #header.sticky-header .main-menu-wrap').css(theme.rtl_browser?'left':'right', ''); } $('.owl-carousel .owl-stage').each(function(){ var $this=$(this), w=$this.width() + parseInt($this.css('padding-left')) + parseInt($this.css('padding-right')); $this.css({'width': w + 200}); setTimeout(function(){ $this.css({'width': w}); }, 0); }); var that=$(this._lastFocusedEl); if(( that.parents('.portfolios-lightbox').hasClass('with-thumbs'))&&$(document).width() >=1024){ $(' body > .porto-portfolios-lighbox-thumbnails').remove(); } }} }, infiniteConfig: { navSelector:"div.pagination", nextSelector:"div.pagination a.next", loading:{ finishedMsg: "", msgText: "", img: "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" }}, sticky_nav_height: 0, getScrollbarWidth: function(){ if(this.scrollbarSize===undefined){ var scrollDiv=document.createElement("div"); scrollDiv.style.cssText='width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;'; document.body.appendChild(scrollDiv); this.scrollbarSize=scrollDiv.offsetWidth - scrollDiv.clientWidth; document.body.removeChild(scrollDiv); } return this.scrollbarSize; }, isTablet: function(){ if($(window).width() < 992 - theme.getScrollbarWidth()) return true; return false; }, isMobile: function(){ if($(window).width() <=480 - theme.getScrollbarWidth()) return true; return false; }, refreshVCContent: function($elements){ if($elements){ var $stats=$elements.find('.stats-block'); $stats.each(function(){ $(this).appear(function(){ var endNum=parseFloat($(this).find('.stats-number').data('counter-value')); var Num=($(this).find('.stats-number').data('counter-value'))+' '; var speed=parseInt($(this).find('.stats-number').data('speed')); var ID=$(this).find('.stats-number').data('id'); var sep=$(this).find('.stats-number').data('separator'); var dec=$(this).find('.stats-number').data('decimal'); var dec_count=Num.split("."); if(dec_count[1]){ dec_count=dec_count[1].length-1; }else{ dec_count=0; } var grouping=true; if(dec=="none"){ dec=""; } if(sep=="none"){ grouping=false; }else{ grouping=true; } var settings={ useEasing:true, useGrouping:grouping, separator:sep, decimal:dec } var counter=new countUp(ID, 0, endNum, dec_count, speed, settings); counter.start(); }, { accX: 0, accY: -150 }); }); } theme.refreshStickySidebar(true); if(typeof window.vc_js=='function') window.vc_js(); }, adminBarHeight: function(){ var $admin_bar=$('#wpadminbar'), adminbar_height=0; if($admin_bar.get(0)){ adminbar_height=$('#wpadminbar').css('position')=='fixed' ? $('#wpadminbar').height():0; } return parseInt(adminbar_height); }, refreshStickySidebar: function(timeout){ var $sticky_sidebar=$('.sidebar [data-plugin-sticky]'); if($sticky_sidebar.get(0)){ if(timeout){ setTimeout(function(){ $sticky_sidebar.trigger('recalc.pin'); }, 400); }else{ $sticky_sidebar.trigger('recalc.pin'); }} }, scrolltoContainer: function($container){ if($container.get(0)){ var winWidth=$(window).width(); if(winWidth <=991 - theme.getScrollbarWidth()){ $('.sidebar-overlay').click(); } $('html, body').stop().animate({ scrollTop: $container.offset().top - theme.StickyHeader.sticky_height - theme.adminBarHeight() - theme.sticky_nav_height - 18 }, 600, 'easeOutQuad'); }} }); }).apply(this, [window.theme, jQuery]); function portoCalcSliderMargin($parent, padding){ $parent.css({ 'margin-left': '-' + padding, 'margin-right': '-' + padding }); } function portoCalcSliderButtonsPosition($parent, padding){ var $buttons=$parent.find('.show-nav-title .owl-nav'); if($buttons.length){ if(window.theme.rtl){ $buttons.css('left', padding); }else{ $buttons.css('right', padding); }} } function portoCalcSliderTitleLine($parent){ var c_w=$parent.width(); var $title=$parent.parent().find('.slider-title'); if(!$title.length) return; var $l=$title.find('.line'); var $t=$title.find('.inline-title'); if(!$t.length||!$l.length) return; var title_w=$title.width(); var t_w=$t.width(); if(title_w > t_w + 200){ if(window.theme.rtl){ $l.css({ display: 'block', right: t_w + 20, width: title_w - t_w - 75 }); }else{ $l.css({ display: 'block', left: t_w + 20, width: title_w - t_w - 75 }); }}else{ $l.css({ display: 'none' }); }} (function(theme, $){ theme=theme||{}; var instanceName='__accordion'; var Accordion=function($el, opts){ return this.initialize($el, opts); }; Accordion.defaults={ }; Accordion.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, Accordion.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ if(!($.isFunction($.fn.collapse))){ return this; } var self=this, $el=this.options.wrapper, $collapse=$el.find('.collapse'), collapsible=$el.data('collapsible'), active_num=$el.data('active-tab'); if($collapse.length > 0){ if(collapsible=='yes'){ $collapse.collapse({toggle: false, parent: '#' + $el.attr('id')}); }else if(!isNaN(active_num)&&active_num==parseInt(active_num)&&$el.find('.collapse').length > active_num){ $el.find('.collapse').collapse({toggle: false, parent: '#' + $el.attr('id')}); $el.find('.collapse').eq(active_num-1).collapse('toggle'); }else{ $el.find('.collapse').collapse({parent: '#' + $el.attr('id')}); }} return this; }}; $.extend(theme, { Accordion: Accordion }); $.fn.themeAccordion=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.Accordion($this, opts); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__accordionMenu'; var AccordionMenu=function($el, opts){ return this.initialize($el, opts); }; AccordionMenu.defaults={ }; AccordionMenu.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, AccordionMenu.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ var self=this, $el=this.options.wrapper; $el.find('li.menu-item.active').each(function(){ var $this=$(this); if($this.find('> .arrow').get(0)) $this.find('> .arrow').click(); }); $el.find('.arrow').click(function(){ var $this=$(this), $parent=$this.closest('li'); $this.next().stop().slideToggle(); if($parent.hasClass('open')){ $parent.removeClass('open'); }else{ $parent.addClass('open'); }}); return this; }}; $.extend(theme, { AccordionMenu: AccordionMenu }); $.fn.themeAccordionMenu=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.AccordionMenu($this, opts); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__animate'; var Animate=function($el, opts){ return this.initialize($el, opts); }; Animate.defaults={ accX: 0, accY: -150, delay: 1, duration: 1000 }; Animate.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, Animate.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ var self=this, $el=this.options.wrapper, delay=0, duration=0; $el.addClass('appear-animation'); if(!$('html').hasClass('no-csstransitions')&&$(window).width() > (767 - theme.getScrollbarWidth())&&$.isFunction($.fn.appear)){ $el.appear(function(){ delay=Math.abs($el.attr('data-appear-animation-delay') ? $el.attr('data-appear-animation-delay'):self.options.delay); if(delay > 1){ $el.css('animation-delay', delay + 'ms'); } duration=Math.abs($el.attr('data-appear-animation-duration') ? $el.attr('data-appear-animation-duration'):self.options.duration); if(duration!=1000){ $el.css('animation-duration', duration + 'ms'); } $el.addClass($el.attr('data-appear-animation')); setTimeout(function(){ $el.addClass('appear-animation-visible'); }, delay); }, { accX: self.options.accX, accY: self.options.accY }); }else{ $el.addClass('appear-animation-visible'); } return this; }}; $.extend(theme, { Animate: Animate }); $.fn.themeAnimate=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.Animate($this, opts); }}); };}).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__carousel'; var Carousel=function($el, opts){ return this.initialize($el, opts); }; Carousel.defaults=$.extend({}, { loop: true, navText: [], themeConfig: false, lazyLoad: true, lg: 0, md: 0, sm: 0, xs: 0, responsive: {}, single: false, rtl: theme.rtl }); var scrollWidth=theme.getScrollbarWidth(), w_sm=481 - scrollWidth, w_md=768 - scrollWidth, w_lg=992 - scrollWidth, w_xl=theme.screen_lg - scrollWidth; Carousel.defaults.responsive[0]={items: 1}; Carousel.defaults.responsive[w_sm]={items: 1, mergeFit: false}; Carousel.defaults.responsive[w_md]={items: 1, mergeFit: false}; Carousel.defaults.responsive[w_lg]={items: 1, mergeFit: false}; Carousel.defaults.responsive[w_xl]={items: 1, mergeFit: false}; Carousel.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ if((opts&&opts.themeConfig)||!opts){ this.options=$.extend(true, {}, Carousel.defaults, theme.owlConfig, opts, { wrapper: this.$el, themeConfig: true }); }else{ this.options=$.extend(true, {}, Carousel.defaults, opts, { wrapper: this.$el }); } return this; }, build: function(){ if(!($.isFunction($.fn.owlCarousel))){ return this; } var self=this, $el=this.options.wrapper, loop=this.options.loop, lg=this.options.lg ? this.options.lg:this.options.items, md=this.options.md ? this.options.md:this.options.items, sm=this.options.sm ? this.options.sm:this.options.items, xs=this.options.xs ? this.options.xs:this.options.items, single=this.options.single, zoom=$el.find('.zoom').get(0), responsive={}, items, count=$el.find('> *').length; if(single){ items=1; }else{ items=this.options.items ? this.options.items:(lg ? lg:1); responsive[w_xl]={ items: items, loop: (loop&&count > items) ? true:false, mergeFit: this.options.mergeFit }; if(lg) responsive[w_lg]={ items: lg, loop: (loop&&count > lg) ? true:false, mergeFit: this.options.mergeFit_lg }; if(md) responsive[w_md]={ items: md, loop: (loop&&count > md) ? true:false, mergeFit: this.options.mergeFit_md }; if(sm) responsive[w_sm]={ items: sm, loop: (loop&&count > sm) ? true:false, mergeFit: this.options.mergeFit_sm }; if(xs) responsive[0]={ items: xs, loop: (loop&&count > xs) ? true:false, mergeFit: this.options.mergeFit_xs };} if(!$el.hasClass('show-nav-title')&&this.options.themeConfig&&theme.slider_nav_hover) $el.addClass('show-nav-hover'); this.options=$.extend(true, {}, this.options, { items: items, loop: (loop&&count > items) ? true:false, responsive: responsive, onInitialized: function(){ $el.find('.owl-stage-outer').css({ 'margin-left': this.options.stagePadding, 'margin-right': this.options.stagePadding }) }, touchDrag: (count==1) ? false:true, mouseDrag: (count==1) ? false:true }); if(this.options.autoHeight){ function calcOwlHeight(){ var h=0; $el.find('.owl-item.active').each(function(){ if(h < $(this).height()) h=$(this).height(); }); $el.find('.owl-stage-outer').height(h); } $(window).on('resize', function(){ calcOwlHeight(); }); $(window).on('load', function(){ calcOwlHeight(); }); } if(zoom){ var links=[], i=0; $el.find('.zoom').each(function(){ var slide={}, $zoom=$(this); slide.src=$zoom.data('src'); slide.title=$zoom.data('title'); links[i]=slide; $zoom.data('index', i); i++; }); } if($el.hasClass('show-nav-title')){ this.options.stagePadding=0; }else{ if(this.options.themeConfig&&theme.slider_nav_hover) $el.addClass('show-nav-hover'); if(this.options.themeConfig&&!theme.slider_nav_hover&&theme.slider_margin) $el.addClass('stage-margin'); } $el.owlCarousel(this.options); if(zoom&&links){ $el.on('click', '.zoom', function(e){ e.preventDefault(); $.magnificPopup.close(); $.magnificPopup.open($.extend(true, {}, theme.mfpConfig, { items: links, gallery: { enabled: true }, type: 'image' }), $(this).data('index')); return false; }); } return this; }}; $.extend(theme, { Carousel: Carousel }); $.fn.themeCarousel=function(opts, zoom){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.Carousel($this, opts, zoom); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__chartCircular'; var ChartCircular=function($el, opts){ return this.initialize($el, opts); }; ChartCircular.defaults={ accX: 0, accY: -150, delay: 1, barColor: '#0088CC', trackColor: '#f2f2f2', scaleColor: false, scaleLength: 5, lineCap: 'round', lineWidth: 13, size: 175, rotate: 0, animate: ({ duration: 2500, enabled: true }) }; ChartCircular.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, ChartCircular.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ if(!($.isFunction($.fn.appear))||!($.isFunction($.fn.easyPieChart))){ return this; } var self=this, $el=this.options.wrapper, value=($el.attr('data-percent') ? $el.attr('data-percent'):0), percentEl=$el.find('.percent'); if(!value) value=1; var labelValue=this.options.labelValue ? this.options.labelValue:value; $.extend(true, self.options, { onStep: function(from, to, currentValue){ percentEl.html(parseInt(labelValue * currentValue / value)); }}); $el.attr('data-percent', 0); $el.appear(function(){ $el.easyPieChart(self.options); setTimeout(function(){ $el.data('easyPieChart').update(value); $el.attr('data-percent', value); }, self.options.delay); }, { accX: self.options.accX, accY: self.options.accY }); return this; }}; $.extend(theme, { ChartCircular: ChartCircular }); $.fn.themeChartCircular=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.ChartCircular($this, opts); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__fitVideo'; var FitVideo=function($el, opts){ return this.initialize($el, opts); }; FitVideo.defaults={ }; FitVideo.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, FitVideo.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ if(!($.isFunction($.fn.fitVids))){ return this; } var self=this, $el=this.options.wrapper; $el.fitVids(); $(window).on('resize', function(){ $el.fitVids(); }); return this; }}; $.extend(theme, { FitVideo: FitVideo }); $.fn.themeFitVideo=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.FitVideo($this, opts); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__flickrZoom'; var FlickrZoom=function($el, opts){ return this.initialize($el, opts); }; FlickrZoom.defaults={ }; FlickrZoom.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, FlickrZoom.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ var self=this, $el=this.options.wrapper, links=[], i=0, $flickr_links=$el.find('.flickr_badge_image > a'); $flickr_links.each(function(){ var slide={}, $image=$(this).find('> img'); slide.src=$image.attr('src').replace('_s.', '_b.'); slide.title=$image.attr('title'); links[i]=slide; i++; }); $flickr_links.click(function(e){ e.preventDefault(); $.magnificPopup.close(); $.magnificPopup.open($.extend(true, {}, theme.mfpConfig, { items: links, gallery: { enabled: true }, type: 'image' }), $flickr_links.index($(this))); }); return this; }}; $.extend(theme, { FlickrZoom: FlickrZoom }); $.fn.themeFlickrZoom=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.FlickrZoom($this, opts); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__lightbox'; var Lightbox=function($el, opts){ return this.initialize($el, opts); }; Lightbox.defaults={ callbacks: { open: function(){ $('body').addClass('lightbox-opened'); }, close: function(){ $('body').removeClass('lightbox-opened'); }} }; Lightbox.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, Lightbox.defaults, theme.mfpConfig, opts, { wrapper: this.$el }); return this; }, build: function(){ if(!($.isFunction($.fn.magnificPopup))){ return this; } this.options.wrapper.magnificPopup(this.options); return this; }}; $.extend(theme, { Lightbox: Lightbox }); $.fn.themeLightbox=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.Lightbox($this, opts); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ 'use strict'; theme=theme||{}; var loadingOverlayTemplate=[ ' ' ].join(''); var LoadingOverlay=function($wrapper, options){ return this.initialize($wrapper, options); }; LoadingOverlay.prototype={ options: { css: {}}, initialize: function($wrapper, options){ this.$wrapper=$wrapper; this .setVars() .setOptions(options) .build() .events(); this.$wrapper.data('loadingOverlay', this); }, setVars: function(){ this.$overlay=this.$wrapper.find('.loading-overlay'); return this; }, setOptions: function(options){ if(!this.$overlay.get(0)){ this.matchProperties(); } this.options=$.extend(true, {}, this.options, options); this.loaderClass=this.getLoaderClass(this.options.css.backgroundColor); return this; }, build: function(){ if(!this.$overlay.closest(document.documentElement).get(0)){ if(!this.$cachedOverlay){ this.$overlay=$(loadingOverlayTemplate).clone(); if(this.options.css){ this.$overlay.css(this.options.css); this.$overlay.find('.loader').addClass(this.loaderClass); }}else{ this.$overlay=this.$cachedOverlay.clone(); } this.$wrapper.append(this.$overlay); } if(!this.$cachedOverlay){ this.$cachedOverlay=this.$overlay.clone(); } return this; }, events: function(){ var _self=this; if(this.options.startShowing){ _self.show(); } if(this.$wrapper.is('body')||this.options.hideOnWindowLoad){ $(window).on('load error', function(){ _self.hide(); }); } if(this.options.listenOn){ $(this.options.listenOn) .on('loading-overlay:show beforeSend.ic', function(e){ e.stopPropagation(); _self.show(); }) .on('loading-overlay:hide complete.ic', function(e){ e.stopPropagation(); _self.hide(); }); } this.$wrapper .on('loading-overlay:show beforeSend.ic', function(e){ e.stopPropagation(); _self.show(); }) .on('loading-overlay:hide complete.ic', function(e){ e.stopPropagation(); _self.hide(); }); return this; }, show: function(){ this.build(); this.position=this.$wrapper.css('position').toLowerCase(); if(this.position!='relative'||this.position!='absolute'||this.position!='fixed'){ this.$wrapper.css({ position: 'relative' }); } this.$wrapper.addClass('loading-overlay-showing'); }, hide: function(){ var _self=this; this.$wrapper.removeClass('loading-overlay-showing'); setTimeout(function(){ if(this.position!='relative'||this.position!='absolute'||this.position!='fixed'){ _self.$wrapper.css({ position: '' }); }}, 500); }, matchProperties: function(){ var i, l, properties; properties=[ 'backgroundColor', 'borderRadius' ]; l=properties.length; for(i=0; i < l; i++){ var obj={}; obj[ properties[ i ] ]=this.$wrapper.css(properties[ i ]); $.extend(this.options.css, obj); }}, getLoaderClass: function(backgroundColor){ if(!backgroundColor||backgroundColor==='transparent'||backgroundColor==='inherit'){ return 'black'; } var hexColor, r, g, b, yiq; var colorToHex=function(color){ var hex, rgb; if(color.indexOf('#') >- 1){ hex=color.replace('#', ''); }else{ rgb=color.match(/\d+/g); hex=('0' + parseInt(rgb[0], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[1], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[2], 10).toString(16)).slice(-2); } if(hex.length===3){ hex=hex + hex; } return hex; }; hexColor=colorToHex(backgroundColor); r=parseInt(hexColor.substr(0, 2), 16); g=parseInt(hexColor.substr(2, 2), 16); b=parseInt(hexColor.substr(4, 2), 16); yiq=((r * 299) + (g * 587) + (b * 114)) / 1000; return(yiq >=128) ? 'black':'white'; }}; $.extend(theme, { LoadingOverlay: LoadingOverlay }); $.fn.loadingOverlay=function(opts){ return this.each(function(){ var $this=$(this); var loadingOverlay=$this.data('loadingOverlay'); if(loadingOverlay){ return loadingOverlay; }else{ var options=opts||$this.data('loading-overlay-options')||{}; return new LoadingOverlay($this, options); }}); } $(function(){ $('[data-loading-overlay]').loadingOverlay(); }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__masonry'; var Masonry=function($el, opts){ return this.initialize($el, opts); }; Masonry.defaults={ itemSelector: 'li', isOriginLeft:!theme.rtl }; Masonry.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, Masonry.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ if(!($.isFunction($.fn.isotope))){ return this; } var self=this, $el=this.options.wrapper; $el.isotope(this.options); if(this.options.callback){ $el.isotope('on', 'layoutComplete', this.options.callback); } $el.isotope('layout'); self.resize(); $(window).on('resize', function(){ self.resize() }); return this; }, resize: function(){ var self=this, $el=this.options.wrapper; if(self.resizeTimer) clearTimeout(self.resizeTimer); self.resizeTimer=setTimeout(function(){ if($el.data('isotope')){ $el.isotope('layout'); } delete self.resizeTimer; }, 600); }}; $.extend(theme, { Masonry: Masonry }); $.fn.themeMasonry=function(opts){ return this.map(function(){ var $this=$(this); $this.waitForImages(function(){ if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.Masonry($this, opts); }}); }); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__previewImage'; var PreviewImage=function($el, opts){ return this.initialize($el, opts); }; PreviewImage.defaults={ }; PreviewImage.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, PreviewImage.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ var self=this, $el=this.options.wrapper, image=$el.data('image'); if(image){ $el.css('background-image', 'url(' + image + ')'); } return this; }}; $.extend(theme, { PreviewImage: PreviewImage }); $.fn.themePreviewImage=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.PreviewImage($this, opts); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__refreshVideoSize'; var RefreshVideoSize=function($el, opts){ return this.initialize($el, opts); }; RefreshVideoSize.defaults={ }; RefreshVideoSize.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, RefreshVideoSize.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ var self=this; setTimeout(function(){ self.refresh(); }, 100); $(window).on('resize', function(){ setTimeout(function(){ self.refresh(); }, 100); }); return this; }, refresh: function(){ var self=this, $el=this.options.wrapper, $video=$el.find('video'), w=$el.width(), h=$el.height(); if(!$video.get(0)){ return; } $video.css('width', '100%').css('height', 'auto'); var vw=$video.width(), vh=$video.height(); if(vh < h){ $video.css('height', h); $video.css('width', h / vh * 100 + '%'); } return this; }}; $.extend(theme, { RefreshVideoSize: RefreshVideoSize }); $.fn.themeRefreshVideoSize=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.RefreshVideoSize($this, opts); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__toggle'; var Toggle=function($el, opts){ return this.initialize($el, opts); }; Toggle.defaults={ }; Toggle.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, Toggle.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ var self=this, $el=this.options.wrapper; if($el.hasClass('active')) $el.find("> div.toggle-content").stop().slideDown(350, function(){ $(this).attr('style', '').show(); }); $el.on('click', "> label", function(e){ var parentSection=$(this).parent(), parentWrapper=$(this).closest("div.toogle"), parentToggles=$(this).closest(".porto-toggles"), isAccordion=parentWrapper.hasClass("toogle-accordion"), toggleContent=parentSection.find("> div.toggle-content"); if(isAccordion&&typeof(e.originalEvent)!="undefined"){ parentWrapper.find("section.toggle.active > label").trigger("click"); } if(!parentSection.hasClass("active")){ if(parentToggles.length){ if(parentToggles.data('view')=='one-toggle'){ parentToggles.find('.toggle').each(function(){ $(this).removeClass('active'); $(this).find("> div.toggle-content").stop().slideUp(350, function(){ $(this).attr('style', '').hide(); }); }); }} toggleContent.stop().slideDown(350, function(){ $(this).attr('style', '').show(); theme.refreshVCContent(toggleContent); }); parentSection.addClass("active"); }else{ if(!parentToggles.length||parentToggles.data('view')!='one-toggle'){ toggleContent.stop().slideUp(350, function(){ $(this).attr('style', '').hide(); }); parentSection.removeClass("active"); }} }); return this; }}; $.extend(theme, { Toggle: Toggle }); $.fn.themeToggle=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.Toggle($this, opts); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__parallax'; var Parallax=function($el, opts){ return this.initialize($el, opts); }; Parallax.defaults={ speed: 1.5, horizontalPosition: '50%', offset: 0 }; Parallax.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, Parallax.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ var self=this, $window=$(window), offset, yPos, bgpos; self.options.wrapper.removeAttr('style'); if(typeof self.options.wrapper.data('image-src')!='undefined') self.options.wrapper.css('background-image', 'url(' + self.options.wrapper.data('image-src') + ')'); if(!$.browser.mobile){ $window.on('scroll resize', function(){ offset=self.options.wrapper.offset(); yPos=-($window.scrollTop() - offset.top) / self.options.speed + (self.options.offset); bgpos=self.options.horizontalPosition + ' ' + yPos + 'px'; self.options.wrapper.css('background-position', bgpos); }); $window.trigger('scroll'); }else{ self.options.wrapper.addClass('parallax-disabled'); } return this; }}; $.extend(theme, { Parallax: Parallax }); $.fn.themeParallax=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.Parallax($this, opts); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__toggle'; var VcImageZoom=function($el, opts){ return this.initialize($el, opts); }; VcImageZoom.defaults={ }; VcImageZoom.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, VcImageZoom.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ var self=this, $el=this.options.wrapper; $el.click(function(e){ e.preventDefault(); var $this=$(this), gallery=$this.attr('data-gallery'), links=[], i=0, index=0, options; if(gallery=='true'){ var container='vc_row'; if($this.attr('data-container')) container=$this.attr('data-container'); var $parent=$($this.closest('.' + container).get(0)); $parent.find('.porto-vc-zoom').each(function(){ var slide={}; slide.src=$(this).attr('href'); slide.title=$(this).attr('data-title'); links[i]=slide; i++; }); index=$parent.find('.porto-vc-zoom').index($this); }else{ var slide={}; slide.src=$(this).attr('href'); slide.title=$(this).attr('data-title'); links[i]=slide; options={index: 0, event: e};} $.magnificPopup.close(); $.magnificPopup.open($.extend(true, {}, theme.mfpConfig, { items: links, gallery: { enabled: true }, type: 'image' }), index); return false; }); return this; }}; $.extend(theme, { VcImageZoom: VcImageZoom }); $.fn.themeVcImageZoom=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.VcImageZoom($this, opts); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ $.fn.themePin=function (options){ var scrollY=0, elements=[], disabled=false, $window=$(window); options=options||{}; var recalculateLimits=function (){ for (var i=0, len=elements.length; i"); } var pad=$.extend({ top: 0, bottom: 0 }, options.padding||{}); var pt=parseInt($this.parent().parent().css('padding-top')), pb=parseInt($this.parent().parent().css('padding-bottom')); if(options.autoInit){ pad.top=theme.StickyHeader.sticky_height + theme.adminBarHeight() + 18; pad.bottom=0; } var bb=$this.css('border-bottom'), h=$this.outerHeight(); $this.css('border-bottom', '1px solid transparent'); var o_h=$this.outerHeight() - h - 1; $this.css('border-bottom', bb); $this.css({width: $this.outerWidth()}); $this.parent().css("height", $this.outerHeight() + o_h); var c_h=$container.height() $this.data("themePin", { pad: pad, from: (options.containerSelector ? containerOffset.top:offset.top) - pad.top + pt, to: containerOffset.top + c_h - $this.outerHeight() - pad.bottom - pb, end: containerOffset.top + c_h, parentTop: parentOffset.top - pt, offset: o_h }); }}; var onScroll=function (){ if(disabled){ return; } scrollY=$window.scrollTop(); for (var i=0, len=elements.length; i data.end||from >=to){ $this.css({position: "", top: "", left: ""}); if(options.activeClass){ $this.removeClass(options.activeClass); } $this.removeClass('sticky-transition'); $this.removeClass('sticky-absolute'); continue; } if(scrollY > from&&scrollY < to){ !($this.css("position")=="fixed")&&$this.css({ left: $this.offset().left, top: data.pad.top }).css("position", "fixed"); if(options.activeClass){ $this.addClass(options.activeClass); } $this.removeClass('sticky-transition'); $this.removeClass('sticky-absolute'); }else if(scrollY >=to){ $this.css({ left: "", top: to - data.parentTop + data.pad.top }).css("position", "absolute"); if(options.activeClass){ $this.addClass(options.activeClass); } if($this.hasClass('sticky-absolute')) $this.addClass('sticky-transition'); $this.addClass('sticky-absolute'); }else{ $this.css({position: "", top: "", left: ""}); if(options.activeClass){ $this.removeClass(options.activeClass); } $this.removeClass('sticky-transition'); $this.removeClass('sticky-absolute'); }} }; var update=function (){ recalculateLimits(); onScroll(); }; this.each(function (){ var $this=$(this), data=$(this).data('themePin')||{}; if(data&&data.update){ return; } elements.push($this); $("img", this).one("load", recalculateLimits); data.update=update; $(this).data('themePin', data); }); $(window).on('resize', function(){ recalculateLimits(); onScroll(); }); $(window).on('scroll', function(){ onScroll(); }); recalculateLimits(); $window.load(update); $(this).bind('recalc.pin', function(){ recalculateLimits(); onScroll(); }); return this; }; theme=theme||{}; var instanceName='__sticky'; var Sticky=function($el, opts){ return this.initialize($el, opts); }; Sticky.defaults={ autoInit: false, minWidth: 767, activeClass: 'sticky-active', padding: { top: 0, bottom: 0 }, offsetTop: 0, offsetBottom: 0 }; Sticky.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, Sticky.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ if(!($.isFunction($.fn.themePin))){ return this; } var self=this, $el=this.options.wrapper; this.options.minWidth -=theme.getScrollbarWidth(); if($el.hasClass('porto-sticky-nav')){ this.options.padding.top=theme.StickyHeader.sticky_height + theme.adminBarHeight(); this.options.activeClass='sticky-active'; this.options.containerSelector='.main-content-wrap'; theme.sticky_nav_height=$el.outerHeight(); if(this.options.minWidth > $(window).width()) theme.sticky_nav_height=0; } $el.themePin(this.options); $(window).on('resize', function(){ setTimeout(function(){ $el.trigger('recalc.pin'); }, 800); var $parent=$el.parent(); $el.width($parent.width()); if($el.css('position')=='fixed'){ $el.css('left', $parent.offset().left); } if($el.hasClass('porto-sticky-nav')){ theme.sticky_nav_height=$el.outerHeight(); if(self.options.minWidth > $(window).width()) theme.sticky_nav_height=0; }}); return this; }}; $.extend(theme, { Sticky: Sticky }); $.fn.themeSticky=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ $this.trigger('recalc.pin'); setTimeout(function(){ $this.trigger('recalc.pin'); }, 800); return $this.data(instanceName); }else{ return new theme.Sticky($this, opts); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__wooWidgetToggle'; var WooWidgetToggle=function($el, opts){ return this.initialize($el, opts); }; WooWidgetToggle.defaults={ }; WooWidgetToggle.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, WooWidgetToggle.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ var self=this, $el=this.options.wrapper; $el.parent().removeClass('closed'); if(!$el.find('.toggle').length){ $el.append(''); } $el.find('.toggle').click(function(){ if($el.next().is(":visible")){ $el.parent().addClass('closed'); }else{ $el.parent().removeClass('closed'); } $el.next().stop().slideToggle(200); theme.refreshVCContent(); }); return this; }}; $.extend(theme, { WooWidgetToggle: WooWidgetToggle }); $.fn.themeWooWidgetToggle=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.WooWidgetToggle($this, opts); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__wooWidgetAccordion'; var WooWidgetAccordion=function($el, opts){ return this.initialize($el, opts); }; WooWidgetAccordion.defaults={ }; WooWidgetAccordion.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, WooWidgetAccordion.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ var self=this, $el=this.options.wrapper; $el.find('ul.children').each(function(){ var $this=$(this); if(!$this.prev().hasClass('toggle')){ $this.before($('').click(function(){ var $that=$(this); if($that.next().is(":visible")){ $that.parent().removeClass('open').addClass('closed'); }else{ $that.parent().addClass('open').removeClass('closed'); } $that.next().stop().slideToggle(200); theme.refreshVCContent(); }) ); }}); $el.find('li[class*="current-"]').addClass('current'); return this; }}; $.extend(theme, { WooWidgetAccordion: WooWidgetAccordion }); $.fn.themeWooWidgetAccordion=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.WooWidgetAccordion($this, opts); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var instanceName='__wooProductsSlider'; var WooProductsSlider=function($el, opts){ return this.initialize($el, opts); }; WooProductsSlider.defaults={ rtl: theme.rtl, autoplay:theme.slider_autoplay=='1' ? true:false, autoplayTimeout: theme.slider_speed ? theme.slider_speed:5000, loop: theme.slider_loop, nav: false, navText: ["", ""], dots: false, autoplayHoverPause:true, items:1, responsive:{}, autoHeight:true, lazyLoad: true }; WooProductsSlider.prototype={ initialize: function($el, opts){ if($el.data(instanceName)){ return this; } this.$el=$el; this .setData() .setOptions(opts) .build(); return this; }, setData: function(){ this.$el.data(instanceName, this); return this; }, setOptions: function(opts){ this.options=$.extend(true, {}, WooProductsSlider.defaults, opts, { wrapper: this.$el }); return this; }, build: function(){ var self=this, $el=this.options.wrapper, lg=this.options.lg, md=this.options.md, xs=this.options.xs, ls=this.options.ls, $slider_wrapper=$el.closest('.slider-wrapper'), single=this.options.single, dots=this.options.dots, nav=this.options.nav, responsive={}, items, scrollWidth=theme.getScrollbarWidth(), count=$el.find('> *').length, w_xs=481 - scrollWidth, w_md=768 - scrollWidth, w_lg=992 - scrollWidth; if($el.find('.product').get(0)){ portoCalcSliderMargin($slider_wrapper, $el.find('.product').css('padding-left')); portoCalcSliderButtonsPosition($slider_wrapper, $el.find('.product').css('padding-left')); }else if($el.find('.product-category').get(0)){ portoCalcSliderMargin($slider_wrapper, $el.find('.product-category').css('padding-left')); portoCalcSliderButtonsPosition($slider_wrapper, $el.find('.product-category').css('padding-left')); } portoCalcSliderTitleLine($slider_wrapper); if(single){ items=1; }else{ items=lg ? lg:1; if(lg) responsive[w_lg]={ items: lg, loop: (this.options.loop&&count > lg) ? true:false }; if(md) responsive[w_md]={ items: md, loop: (this.options.loop&&count > md) ? true:false }; if(xs) responsive[w_xs]={ items: xs, loop: (this.options.loop&&count > xs) ? true:false }; if(ls) responsive[0]={ items: ls, loop: (this.options.loop&&count > ls) ? true:false };} this.options=$.extend(true, {}, this.options, { loop: (this.options.loop&&count > items) ? true:false, items:items, responsive:responsive, onRefresh: function(){ if($el.find('.product').get(0)){ portoCalcSliderMargin($slider_wrapper, $el.find('.product').css('padding-left')); portoCalcSliderButtonsPosition($slider_wrapper, $el.find('.product').css('padding-left')); }else if($el.find('.product-category').get(0)){ portoCalcSliderMargin($slider_wrapper, $el.find('.product-category').css('padding-left')); portoCalcSliderButtonsPosition($slider_wrapper, $el.find('.product-category').css('padding-left')); } portoCalcSliderTitleLine($slider_wrapper); }, onInitialized: function(){ if($el.find('.product').get(0)){ portoCalcSliderButtonsPosition($slider_wrapper, $el.find('.product').css('padding-left')); }else if($el.find('.product-category').get(0)){ portoCalcSliderButtonsPosition($slider_wrapper, $el.find('.product-category').css('padding-left')); }}, touchDrag: (count==1) ? false:true, mouseDrag: (count==1) ? false:true }); if(this.options.autoHeight){ function calcOwlHeight(){ var h=0; $el.find('.owl-item.active').each(function(){ if(h < $(this).height()) h=$(this).height(); }); $el.find('.owl-stage-outer').height(h); } $(window).on('resize', function(){ calcOwlHeight(); }); $(window).on('load', function(){ calcOwlHeight(); }); } $el.owlCarousel(this.options); return this; }}; $.extend(theme, { WooProductsSlider: WooProductsSlider }); $.fn.themeWooProductsSlider=function(opts){ return this.map(function(){ var $this=$(this); if($this.data(instanceName)){ return $this.data(instanceName); }else{ return new theme.WooProductsSlider($this, opts); }}); }}).apply(this, [window.theme, jQuery]); (function(theme, $){ $(function(){ $('.mobile-toggle').click(function(e){ if($('html').hasClass('panel-opened')){ $('html').removeClass('panel-opened'); $('.panel-overlay').removeClass('active'); }else{ $('html').addClass('panel-opened'); $('.panel-overlay').addClass('active'); }}); $('.panel-overlay').click(function(){ $('html').removeClass('panel-opened'); $(this).removeClass('active'); }); $('#nav-panel-close').click(function(){ $('.panel-overlay').click(); }); $(window).on('resize', function(){ if($(window).width() > 991 - theme.getScrollbarWidth()){ $('.panel-overlay').click(); }}); }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ $(function(){ $(document).on('click', '.portfolio-like', function(e){ e.preventDefault(); var $this=$(this), $parent=$this.parent(), portfolio_id=$this.attr('data-id'); $.post(theme.ajax_url, { portfolio_id: portfolio_id, action: 'porto_portfolio-like' }, function(data){ if(data){ $this.remove(); $parent.html(data); $parent.find("data-tooltip").tooltip(); }} ); return false; }); }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { ScrollToTop: { defaults: { html: '', offsetx: 10, offsety: 0 }, initialize: function(html, offsetx, offsety){ this.html=(html||this.defaults.html); this.offsetx=(offsetx||this.defaults.offsetx); this.offsety=(offsety||this.defaults.offsety); this.build(); return this; }, build: function(){ var self=this; if(typeof scrolltotop!=='undefined'){ scrolltotop.controlHTML=self.html; scrolltotop.controlattrs={offsetx: self.offsetx, offsety: self.offsety}; scrolltotop.init(); } return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { MegaMenu: { defaults: { menu: $('.mega-menu') }, initialize: function($menu){ this.$menu=($menu||this.defaults.menu); this.build() .events(); return this; }, popupWidth: function(){ var winWidth=$(window).width() + theme.getScrollbarWidth(); var popupWidth=$(window).width() - theme.grid_gutter_width * 2; if(!$('body').hasClass('wide')){ if(winWidth >=theme.container_width + theme.grid_gutter_width - 1) popupWidth=theme.container_width - theme.grid_gutter_width; else if(winWidth >=992) popupWidth=960 - theme.grid_gutter_width; else if(winWidth >=768) popupWidth=720 - theme.grid_gutter_width; } return popupWidth; }, build: function(){ var self=this; self.$menu.each(function(){ var $menu=$(this); var $menu_container=$menu.closest('.container'); var container_width=self.popupWidth(); var offset=0; if($menu_container.length){ if(theme.rtl){ offset=($menu_container.offset().left + $menu_container.width()) - ($menu.offset().left + $menu.width()) + parseInt($menu_container.css('padding-right')); }else{ offset=$menu.offset().left - $menu_container.offset().left - parseInt($menu_container.css('padding-left')); } offset=(offset==1) ? 0:offset; } var $menu_items=$menu.find('> li'); $menu_items.each(function(){ var $menu_item=$(this); var $popup=$menu_item.find('> .popup'); if($popup.length > 0){ $popup.css('display', 'block'); if($menu_item.hasClass('wide')){ $popup.css('left', 0); var padding=parseInt($popup.css('padding-left')) + parseInt($popup.css('padding-right')) + parseInt($popup.find('> .inner').css('padding-left')) + parseInt($popup.find('> .inner').css('padding-right')); var row_number=4; if($menu_item.hasClass('col-2')) row_number=2; if($menu_item.hasClass('col-3')) row_number=3; if($menu_item.hasClass('col-4')) row_number=4; if($menu_item.hasClass('col-5')) row_number=5; if($menu_item.hasClass('col-6')) row_number=6; if($(window).width() < 992 - theme.scrollbarWidth) row_number=1; var col_length=0; $popup.find('> .inner > ul > li').each(function(){ var cols=parseFloat($(this).attr('data-cols')); if(cols <=0) cols=1; if(cols > row_number) cols=row_number; col_length +=cols; }); if(col_length > row_number) col_length=row_number; var popup_max_width=$popup.find('.inner').css('max-width'); var col_width=container_width / row_number; if('none'!==popup_max_width&&popup_max_width < container_width){ col_width=parseInt(popup_max_width) / row_number; } $popup.find('> .inner > ul > li').each(function(){ var cols=parseFloat($(this).attr('data-cols')); if(cols <=0) cols=1; if(cols > row_number) cols=row_number; if($menu_item.hasClass('pos-center')||$menu_item.hasClass('pos-left')||$menu_item.hasClass('pos-right')) $(this).css('width', (100 / col_length * cols) + '%'); else $(this).css('width', (100 / row_number * cols) + '%'); }); if($menu_item.hasClass('pos-center')){ $popup.find('> .inner > ul').width(col_width * col_length - padding); var left_position=$popup.offset().left - ($(window).width() - col_width * col_length) / 2; $popup.css({ 'left': -left_position }); }else if($menu_item.hasClass('pos-left')){ $popup.find('> .inner > ul').width(col_width * col_length - padding); $popup.css({ 'left': 0 }); }else if($menu_item.hasClass('pos-right')){ $popup.find('> .inner > ul').width(col_width * col_length - padding); $popup.css({ 'left': 'auto', 'right': 0 }); }else{ $popup.find('> .inner > ul').width(container_width - padding); if(theme.rtl){ $popup.css({ 'right': 0, 'left': 'auto' }); var right_position=($popup.offset().left + $popup.width()) - ($menu.offset().left + $menu.width()) - offset; $popup.css({ 'right': right_position, 'left': 'auto' }); }else{ $popup.css({ 'left': 0, 'right': 'auto' }); var left_position=$popup.offset().left - $menu.offset().left + offset; $popup.css({ 'left': -left_position, 'right': 'auto' }); }} } if(!($menu.hasClass('effect-down'))) $popup.css('display', 'none'); $menu_item.hoverIntent($.extend({}, theme.hoverIntentConfig, { over: function(){ if(!($menu.hasClass('effect-down'))) $menu_items.find('.popup').hide(); $popup.show(); }, out: function(){ if(!($menu.hasClass('effect-down'))) $popup.hide(); }}) ); }}); }); return self; }, events: function(){ var self=this; $(window).on('resize', function(){ self.build(); }); setTimeout(function(){ self.build(); }, 400); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { SidebarMenu: { defaults: { menu: $('.sidebar-menu'), toggle: $('.widget_sidebar_menu .widget-title .toggle'), menu_toggle: $('#main-toggle-menu .menu-title') }, rtl: theme.rtl, initialize: function($menu, $toggle, $menu_toggle){ this.$menu=($menu||this.defaults.menu); this.$toggle=($toggle||this.defaults.toggle); this.$menu_toggle=($menu_toggle||this.defaults.menu_toggle); this.build() .events(); return this; }, isRightSidebar: function($menu){ var flag=false; if(this.rtl){ flag = !($('#main').hasClass('column2-right-sidebar')||$('#main').hasClass('column2-wide-right-sidebar')); }else{ flag=$('#main').hasClass('column2-right-sidebar')||$('#main').hasClass('column2-wide-right-sidebar'); } if($menu.closest('#main-toggle-menu').length){ if(this.rtl){ flag=true; }else{ flag=false; }} if($header_wrapper=$menu.closest('.header-wrapper')){ if($header_wrapper.length&&$header_wrapper.hasClass('header-side-nav')){ if(this.rtl){ flag=true; }else{ flag=false; }} } return flag; }, popupWidth: function(){ var winWidth=$(window).width() + theme.getScrollbarWidth(); var popupWidth=$(window).width() - theme.grid_gutter_width * 2; if(!$('body').hasClass('wide')){ if(winWidth >=theme.container_width + theme.grid_gutter_width - 1) popupWidth=theme.container_width - theme.grid_gutter_width; else if(winWidth >=992) popupWidth=960 - theme.grid_gutter_width; else if(winWidth >=768) popupWidth=720 - theme.grid_gutter_width; } return popupWidth; }, build: function(){ var self=this; self.$menu.each(function(){ var $menu=$(this); var $menu_container=$menu.closest('.container'); var container_width; if($(window).width() < 992 - theme.getScrollbarWidth()) container_width=self.popupWidth(); else container_width=self.popupWidth() - $menu.width() - 45; var is_right_sidebar=self.isRightSidebar($menu); var $menu_items=$menu.find('> li'); $menu_items.each(function(){ var $menu_item=$(this); var $popup=$menu_item.find('> .popup'); if($popup.length > 0){ $popup.css('display', 'block'); if($menu_item.hasClass('wide')){ $popup.css('left', 0); var padding=parseInt($popup.css('padding-left')) + parseInt($popup.css('padding-right')) + parseInt($popup.find('> .inner').css('padding-left')) + parseInt($popup.find('> .inner').css('padding-right')); var row_number=4; if($menu_item.hasClass('col-2')) row_number=2; if($menu_item.hasClass('col-3')) row_number=3; if($menu_item.hasClass('col-4')) row_number=4; if($menu_item.hasClass('col-5')) row_number=5; if($menu_item.hasClass('col-6')) row_number=6; if($(window).width() < 992 - theme.getScrollbarWidth()) row_number=1; var col_length=0; $popup.find('> .inner > ul > li').each(function(){ var cols=parseFloat($(this).attr('data-cols')); if(cols <=0) cols=1; if(cols > row_number) cols=row_number; col_length +=cols; }); if(col_length > row_number) col_length=row_number; var popup_max_width=$popup.find('.inner').css('max-width'); var col_width=container_width / row_number; if('none'!==popup_max_width&&popup_max_width < container_width){ col_width=parseInt(popup_max_width) / row_number; } $popup.find('> .inner > ul > li').each(function(){ var cols=parseFloat($(this).attr('data-cols')); if(cols <=0) cols=1; if(cols > row_number) cols=row_number; if($menu_item.hasClass('pos-center')||$menu_item.hasClass('pos-left')||$menu_item.hasClass('pos-right')) $(this).css('width', (100 / col_length * cols) + '%'); else $(this).css('width', (100 / row_number * cols) + '%'); }); $popup.find('> .inner > ul').width(col_width * col_length + 1); if(is_right_sidebar){ $popup.css({ 'left': 'auto', 'right': $(this).width() }); }else{ $popup.css({ 'left': $(this).width(), 'right': 'auto' }); }} if(!($menu.hasClass('subeffect-down'))) $popup.css('display', 'none'); $menu_item.hoverIntent($.extend({}, theme.hoverIntentConfig, { over: function(){ if(!($menu.hasClass('subeffect-down'))) $menu_items.find('.popup').hide(); $popup.show(); $popup.parent().addClass('open'); }, out: function(){ if(!($menu.hasClass('subeffect-down'))) $popup.hide(); $popup.parent().removeClass('open'); }}) ); }}); }); return self; }, events: function(){ var self=this; self.$toggle.click(function(){ var $widget=$(this).parent().parent(); var $this=$(this); if($this.hasClass('closed')){ $this.removeClass('closed'); $widget.removeClass('closed'); $widget.find('.sidebar-menu-wrap').stop().slideDown(400, function(){ $(this).attr('style', '').show(); self.build(); }); }else{ $this.addClass('closed'); $widget.addClass('closed'); $widget.find('.sidebar-menu-wrap').stop().slideUp(400, function(){ $(this).attr('style', '').hide(); }); }}); this.$menu_toggle.click(function(){ var $toggle_menu=$(this).parent(); var $this=$(this); if($this.hasClass('closed')){ $this.removeClass('closed'); $toggle_menu.removeClass('closed'); $toggle_menu.find('.toggle-menu-wrap').stop().slideDown(400, function(){ $(this).attr('style', '').show(); }); self.build(); }else{ $this.addClass('closed'); $toggle_menu.addClass('closed'); $toggle_menu.find('.toggle-menu-wrap').stop().slideUp(400, function(){ $(this).attr('style', '').hide(); }); }}); $(window).on('resize', function(){ self.build(); }); setTimeout(function(){ self.build(); }, 400); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { StickyHeader: { defaults: { header: $('#header') }, initialize: function($header){ this.$header=($header||this.defaults.header); this.sticky_height=0; this.sticky_offset=0; this.sticky_pos=0; this.change_logo=theme.change_logo; if(!theme.show_sticky_header||!this.$header.length) return this; var self=this; var $header_top=self.$header.find('> .header-top'); if($header_top.length){ self.$header_top=$header_top; self.top_height=$header_top.height(); }else{ self.$header_top=false; } var $menu_wrap=self.$header.find('> .main-menu-wrap'); if($menu_wrap.length){ self.$menu_wrap=$menu_wrap; self.menu_height=$menu_wrap.height(); }else{ self.$menu_wrap=false; } self.$header_main=self.$header.find('.header-main'); self.reveal=self.$header.parents('.header-wrapper').hasClass('header-reveal'); self.is_sticky=false; self.reset() .build() .events(); return self; }, build: function(){ var self=this; if(!self.is_sticky&&($(window).height() + self.header_height + theme.adminBarHeight() + parseInt(self.$header.css('border-top-width')) >=$(document).height())){ return self; } if($(window).height() > $('body').height()) window.scrollTo(0, 0); var scroll_top=$(window).scrollTop(); if(self.$menu_wrap&&!theme.isTablet()){ self.$header_main.stop().css('top', 0); if(self.$header.parent().hasClass('fixed-header')) self.$header.parent().attr('style', ''); if(scroll_top > self.sticky_pos){ if(!self.$header.hasClass('sticky-header')){ self.$header.addClass('sticky-header'); self.$header.css('padding-bottom', self.menu_height); self.$menu_wrap.stop().css('top', theme.adminBarHeight()); var selectric=self.$header.find('.header-main .searchform select').data('selectric'); if(selectric) selectric.close(); if(self.$header.parent().hasClass('fixed-header')){ self.$header_main.hide(); self.$header.css('padding-bottom', 0); } if(!self.init_toggle_menu){ self.init_toggle_menu=true; theme.MegaMenu.build(); if($('#main-toggle-menu').length){ if($('#main-toggle-menu').hasClass('show-always')){ $('#main-toggle-menu').data('show-always', true); $('#main-toggle-menu').removeClass('show-always'); } $('#main-toggle-menu').addClass('closed'); $('#main-toggle-menu .menu-title').addClass('closed'); $('#main-toggle-menu .toggle-menu-wrap').attr('style', ''); }} self.is_sticky=true; }}else{ if(self.$header.hasClass('sticky-header')){ self.$header.removeClass('sticky-header'); self.$header.css('padding-bottom', 0); self.$menu_wrap.stop().css('top', 0); self.$header_main.show(); var selectric=self.$header.find('.main-menu-wrap .searchform select').data('selectric'); if(selectric) selectric.close(); if(self.init_toggle_menu){ self.init_toggle_menu=false; theme.MegaMenu.build(); if($('#main-toggle-menu').length){ if($('#main-toggle-menu').data('show-always')){ $('#main-toggle-menu').addClass('show-always'); $('#main-toggle-menu').removeClass('closed'); $('#main-toggle-menu .menu-title').removeClass('closed'); $('#main-toggle-menu .toggle-menu-wrap').attr('style', ''); }} } self.is_sticky=false; }} }else{ self.$header_main.show(); if(self.$header.parent().hasClass('fixed-header')&&$('#wpadminbar').length&&$('#wpadminbar').css('position')=='absolute'){ self.$header.parent().css('top', ($('#wpadminbar').height() - scroll_top) < 0 ? -$('#wpadminbar').height():-scroll_top); }else if(self.$header.parent().hasClass('fixed-header')){ self.$header.parent().attr('style', ''); }else{ if(self.$header.parent().hasClass('fixed-header')) self.$header.parent().attr('style', ''); } if(self.$header.hasClass('sticky-menu-header')&&!theme.isTablet()){ self.$header_main.stop().css('top', 0); if(self.change_logo) self.$header_main.removeClass('change-logo'); self.$header_main.removeClass('sticky'); self.$header.removeClass('sticky-header'); self.is_sticky=false; self.sticky_height=0; self.sticky_offset=0; }else{ if(self.$menu_wrap) self.$menu_wrap.stop().css('top', 0); if(scroll_top > self.sticky_pos&&(!theme.isTablet()||(theme.isTablet()&&(!theme.isMobile()&&theme.show_sticky_header_tablet)||(theme.isMobile()&&theme.show_sticky_header_tablet&&theme.show_sticky_header_mobile)))){ if(!self.$header.hasClass('sticky-header')){ self.$header.addClass('sticky-header'); self.$header.css('padding-bottom', self.main_height); self.$header_main.addClass('sticky'); if(self.change_logo) self.$header_main.addClass('change-logo'); self.$header_main.stop().css('top', theme.adminBarHeight()); if(!self.init_toggle_menu){ self.init_toggle_menu=true; theme.MegaMenu.build(); if($('#main-toggle-menu').length){ if($('#main-toggle-menu').hasClass('show-always')){ $('#main-toggle-menu').data('show-always', true); $('#main-toggle-menu').removeClass('show-always'); } $('#main-toggle-menu').addClass('closed'); $('#main-toggle-menu .menu-title').addClass('closed'); $('#main-toggle-menu .toggle-menu-wrap').attr('style', ''); }} self.is_sticky=true; }}else{ if(self.$header.hasClass('sticky-header')){ if(self.change_logo) self.$header_main.removeClass('change-logo'); self.$header_main.removeClass('sticky'); self.$header.removeClass('sticky-header'); self.$header.css('padding-bottom', 0); self.$header_main.stop().css('top', 0); if(self.init_toggle_menu){ self.init_toggle_menu=false; theme.MegaMenu.build(); if($('#main-toggle-menu').length){ if($('#main-toggle-menu').data('show-always')){ $('#main-toggle-menu').addClass('show-always'); $('#main-toggle-menu').removeClass('closed'); $('#main-toggle-menu .menu-title').removeClass('closed'); $('#main-toggle-menu .toggle-menu-wrap').attr('style', ''); }} } self.is_sticky=false; }} }} if(!self.$header.hasClass('header-loaded')) self.$header.addClass('header-loaded'); if(!self.$header.find('.logo').hasClass('logo-transition')) self.$header.find('.logo').addClass('logo-transition'); if(self.$header.find('.overlay-logo').get(0)&&!self.$header.find('.overlay-logo').hasClass('overlay-logo-transition')) self.$header.find('.overlay-logo').addClass('overlay-logo-transition'); return self; }, reset: function(){ var self=this; if(self.$header.find('.logo').hasClass('logo-transition')) self.$header.find('.logo').removeClass('logo-transition'); if(self.$header.find('.overlay-logo').get(0)&&self.$header.find('.overlay-logo').hasClass('overlay-logo-transition')) self.$header.find('.overlay-logo').removeClass('overlay-logo-transition'); if(self.$menu_wrap&&!theme.isTablet()){ self.$header.addClass('sticky-header sticky-header-calc'); self.$header_main.addClass('sticky'); if(self.change_logo) self.$header_main.addClass('change-logo'); self.sticky_height=self.$menu_wrap.height() + parseInt(self.$menu_wrap.css('padding-top')) + parseInt(self.$menu_wrap.css('padding-bottom')); self.sticky_offset=parseInt(self.$menu_wrap.css('padding-top')) + parseInt(self.$menu_wrap.css('padding-bottom')); if(self.change_logo) self.$header_main.removeClass('change-logo'); self.$header_main.removeClass('sticky'); self.$header.removeClass('sticky-header sticky-header-calc'); self.header_height=self.$header.height() + parseInt(self.$header.css('margin-top')); self.menu_height=self.$menu_wrap.height() + parseInt(self.$menu_wrap.css('padding-top')) + parseInt(self.$menu_wrap.css('padding-bottom')); self.sticky_pos=(self.header_height - self.sticky_height) + $('.banner-before-header').height() + parseInt($('body').css('padding-top')) + parseInt(self.$header.css('border-top-width')); if(self.reveal){ self.sticky_pos +=self.menu_height + 30; }}else{ self.$header.addClass('sticky-header sticky-header-calc'); self.$header_main.addClass('sticky'); if(self.change_logo) self.$header_main.addClass('change-logo'); self.sticky_main_height=self.$header_main.height(); if(self.change_logo) self.$header_main.removeClass('change-logo'); self.$header_main.removeClass('sticky'); self.$header.removeClass('sticky-header sticky-header-calc'); self.header_height=self.$header.height() + parseInt(self.$header.css('margin-top')); self.main_height=self.$header_main.height(); self.sticky_height=self.sticky_main_height; self.sticky_offset=self.main_height - self.sticky_main_height; if(!(!theme.isTablet()||(theme.isTablet()&&(!theme.isMobile()&&theme.show_sticky_header_tablet)||(theme.isMobile()&&theme.show_sticky_header_tablet&&theme.show_sticky_header_mobile)))){ self.sticky_height=0; self.sticky_offset=0; } self.sticky_pos=(self.header_height - self.sticky_main_height) + $('.banner-before-header').height() + parseInt($('body').css('padding-top')) + parseInt(self.$header.css('border-top-width')); if(self.reveal){ self.sticky_pos +=self.main_height + 30; }} self.init_toggle_menu=false; self.$header_main.removeAttr('style'); self.$header.removeAttr('style'); return self; }, events: function(){ var self=this, win_width=0; $(window).on('resize', function(){ if(win_width!=$(window).width()){ self.reset() .build(); win_width=$(window).width(); }}); $(window).on('scroll', function(){ self.build(); }); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { SideNav: { defaults: { side_nav: $('.header-side-nav #header') }, bc_pos_top: 0, initialize: function($side_nav){ this.$side_nav=($side_nav||this.defaults.side_nav); if(!this.$side_nav.length) return this; var self=this; self.$side_nav.addClass("initialize"); self.reset() .build() .events(); return self; }, build: function(){ var self=this; $page_top=$('.page-top'); $main=$('#main'); if(theme.isTablet()){ self.$side_nav.removeClass("fixed-bottom"); $page_top.removeClass("fixed-pos"); $page_top.attr('style', ''); $main.attr('style', ''); }else{ var side_height=self.$side_nav.innerHeight(); var window_height=$(window).height(); var scroll_top=$(window).scrollTop(); if(side_height - window_height + theme.adminBarHeight() <=scroll_top){ if(!self.$side_nav.hasClass("fixed-bottom")) self.$side_nav.addClass("fixed-bottom"); }else{ if(self.$side_nav.hasClass("fixed-bottom")) self.$side_nav.removeClass("fixed-bottom"); } if($page_top.length){ if(self.page_top_offset==theme.adminBarHeight()||self.page_top_offset <=scroll_top){ if(!$page_top.hasClass("fixed-pos")){ $page_top.addClass("fixed-pos"); $page_top.css('top', theme.adminBarHeight()); $main.css('padding-top', $page_top.outerHeight()); }}else{ if($page_top.hasClass("fixed-pos")){ $page_top.removeClass("fixed-pos"); $page_top.attr('style', ''); $main.attr('style', ''); }} }} return self; }, reset: function(){ var self=this; if(theme.isTablet()){ self.$side_nav.attr('style', ''); }else{ var w_h=$(window).height(); $side_bottom=self.$side_nav.find('.side-bottom'); self.$side_nav.css({ 'min-height': w_h - theme.adminBarHeight(), 'padding-bottom': $side_bottom.height() + parseInt($side_bottom.css('margin-top')) + parseInt($side_bottom.css('margin-bottom')) }); var appVersion=navigator.appVersion; var webkitVersion_positionStart=appVersion.indexOf("AppleWebKit/") + 12; var webkitVersion_positionEnd=webkitVersion_positionStart + 3; var webkitVersion=appVersion.slice(webkitVersion_positionStart,webkitVersion_positionEnd); if(webkitVersion < 537){ self.$side_nav.css('-webkit-backface-visibility', 'hidden'); self.$side_nav.css('-webkit-perspective', '1000'); }} $page_top=$('.page-top'); $main=$('#main'); if($page_top.length){ $page_top.removeClass("fixed-pos"); $page_top.attr('style', ''); $main.attr('style', ''); self.page_top_offset=$page_top.offset().top; } return self; }, events: function(){ var self=this; $(window).on('resize', function(){ self.reset() .build(); }); $(window).on('scroll', function(){ self.build(); }); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { Search: { defaults: { popup: $('.searchform-popup'), form: $('.searchform') }, initialize: function($popup, $form){ this.$popup=($popup||this.defaults.popup); this.$form=($form||this.defaults.form); this.build() .events(); return this; }, build: function(){ var self=this; var $search_form_texts=self.$form.find('.text input'), $search_form_cats=self.$form.find('.cat'); if($('.header-wrapper .searchform .cat').get(0)&&$.fn.selectric){ $('.header-wrapper .searchform .cat').selectric({ arrowButtonMarkup: '', expandToItemText: true, maxHeight: 240 }); } $search_form_texts.on('change', function(){ var $this=$(this), val=$this.val(); $search_form_texts.each(function(){ if($this!=$(this)) $(this).val(val); }); }); $search_form_cats.on('change', function(){ var $this=$(this), val=$this.val(); $search_form_cats.each(function(){ if($this!=$(this)) $(this).val(val); }); }); return this; }, events: function(){ var self=this; self.$popup.click(function(e){ e.stopPropagation(); }); self.$popup.find('.search-toggle').click(function(e){ $(this).next().toggle(); e.stopPropagation(); }); if(!('ontouchstart' in document)){ $('html,body').click(function(){ self.removeFormStyle(); }); $(window).on('resize', function(){ self.removeFormStyle(); }); } return self; }, removeFormStyle: function(){ this.$form.removeAttr('style'); }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { HashScroll: { initialize: function(){ this.build() .events(); return this; }, build: function(){ var self=this; try { var hash=window.location.hash; var target=$(hash); if(target.length&&!(hash=='#review_form'||hash=='#reviews'||hash.indexOf('#comment-')!=-1)){ setTimeout(function(){ $('html, body').stop().animate({ scrollTop: target.offset().top - theme.StickyHeader.sticky_height - theme.adminBarHeight() - theme.sticky_nav_height + 1 }, 600, 'easeOutQuad', function(){ self.activeMenuItem(); }); }, 600); } return self; } catch (err){ return self; }}, activeMenuItem: function(){ var self=this; var scroll_pos=$(window).scrollTop(); var $menu_items=$('.menu-item > a[href*="#"], .porto-sticky-nav .nav > li > a[href*="#"]'); if($menu_items.length){ $menu_items.each(function(){ var $this=$(this); var href=$this.attr('href'); var target; if(href.indexOf('#')==0){ target=$(href); }else{ var url=window.location.href; url=url.substring(url.indexOf('://') + 3); if(url.indexOf('#')!=-1) url=url.substring(0, url.indexOf('#')); href=href.substring(href.indexOf('://') + 3); href=href.substring(href.indexOf(url) + url.length); if(href.indexOf('#')==0){ target=$(href); }} if(target&&target.get(0)){ var scroll_to=target.offset().top - theme.StickyHeader.sticky_height - theme.adminBarHeight() - theme.sticky_nav_height + 1, $parent=$this.parent(); if(scroll_to <=scroll_pos + 5){ $parent.siblings().removeClass('active'); $parent.addClass('active'); }else{ $parent.removeClass('active'); }} }); } return self; }, events: function(){ var self=this; $('.menu-item > a[href*="#"], .porto-sticky-nav .nav > li > a[href*="#"], a[href*="#"].hash-scroll, .hash-scroll-wrap a[href*="#"]').on('click', function(e){ e.preventDefault(); var $this=$(this); var href=$this.attr('href'); var target; if(href.indexOf('#')==0){ target=$(href); }else{ var url=window.location.href; url=url.substring(url.indexOf('://') + 3); if(url.indexOf('#')!=-1) url=url.substring(0, url.indexOf('#')); href=href.substring(href.indexOf('://') + 3); href=href.substring(href.indexOf(url) + url.length); if(href.indexOf('#')==0){ target=$(href); }} if(target&&target.get(0)){ var $parent=$this.parent(); var scroll_to=target.offset().top - theme.StickyHeader.sticky_height - theme.adminBarHeight() - theme.sticky_nav_height + 1; $('html, body').stop().animate({ scrollTop: scroll_to }, 600, 'easeOutQuad', function(){ self.activeMenuItem(); $parent.siblings().removeClass('active'); $parent.addClass('active'); }); }else{ window.location.href=$this.attr('href'); }}); $(window).on('scroll', function(){ self.activeMenuItem(); }); self.activeMenuItem(); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { FaqsInfinite: { defaults: { elements: '.faqs-infinite', itemSelector: '.faqs-infinite .faq' }, initialize: function($elements, itemSelector){ this.$elements=($elements||$(this.defaults.elements)); this.itemSelector=(itemSelector||this.defaults.itemSelector); this.build(); return this; }, build: function(){ var self=this; self.$elements.each(function(){ var $this=$(this), curr_page=$this.attr('data-pagenum'), max_page=$this.attr('data-pagemaxnum'), page_path=$this.attr('data-path'); $this.infinitescroll($.extend(theme.infiniteConfig, { itemSelector:self.itemSelector, state:{ currPage: curr_page }, maxPage: max_page, pathParse:function(a, b){ return [page_path, '/']; }}), function(posts){ var $posts=$(posts); theme.refreshVCContent($posts); porto_init(); var $parent=$this.closest('.page-faqs'); var selected=0; if($parent.find('.faq-filter').length){ var selector=$parent.find('.faq-filter .active').attr('data-filter'), easing="easeInOutQuart", timeout=300; $posts.each(function(){ var $that=$(this); if(selector=='*'){ if($that.css('display')=='none') $that.stop().slideDown(timeout, easing, function(){ $(this).attr('style', '').show(); }); selected++; }else{ if($that.hasClass(selector)){ if($that.css('display')=='none') $that.stop().slideDown(timeout, easing, function(){ $(this).attr('style', '').show(); }); selected++; }else{ $that.stop().hide(); }} }); } if(!selected&&$parent.find('.faqs-infinite').length){ $parent.find('.faqs-infinite').infinitescroll('retrieve'); }}); }); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { FaqFilter: { defaults: { elements: '.faq-filter' }, initialize: function($elements){ this.$elements=($elements||$(this.defaults.elements)); this.build(); return this; }, build: function(){ var self=this; self.$elements.each(function(){ var $this=$(this); $this.find('li').on('click', function(e){ e.preventDefault(); var selector=$(this).attr('data-filter'), position=$this.data('position'), $parent; $this.find('.active').removeClass('active'); if(position=='sidebar'){ $parent=$('.main-content .page-faqs'); theme.scrolltoContainer($parent); $('.sidebar-overlay').click(); }else if(position=='global'){ $parent=$('.main-content .page-faqs'); }else{ $parent=$(this).closest('.page-faqs'); } var selected=0; $parent.find('.faq').each(function(){ var $that=$(this), easing="easeInOutQuart", timeout=300; if(selector=='*'){ if($that.css('display')=='none') $that.stop(true).slideDown(timeout, easing, function(){ $(this).attr('style', '').show(); }); selected++; }else{ if($that.hasClass(selector)){ if($that.css('display')=='none') $that.stop(true).slideDown(timeout, easing, function(){ $(this).attr('style', '').show(); }); selected++; }else{ if($that.css('display')!='none') $that.stop(true).slideUp(timeout, easing, function(){ $(this).attr('style', '').hide(); }); }} }); if(!selected&&$parent.find('.faqs-infinite').length){ $parent.find('.faqs-infinite').infinitescroll('retrieve'); } $(this).addClass('active'); if(position=='sidebar'){ self.$elements.each(function(){ var $that=$(this); if($that==$this&&$that.data('position')!='sidebar') return; $that.find('li').removeClass('active'); $that.find('li[data-filter="' + selector + '"]').addClass('active'); }); } window.location.hash='#' + selector; theme.refreshVCContent(); }); }); function hashchange(){ var $filter=$(self.$elements.get(0)), hash=window.location.hash; if(hash){ $filter.find('li[data-filter="' + hash.replace('#', '') + '"]').click(); }} $(window).on('hashchange', hashchange); hashchange(); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { FilterZoom: { defaults: { elements: null }, initialize: function($elements){ this.$elements=($elements||this.defaults.elements); this.build(); return this; }, build: function(){ var self=this; self.$elements.each(function(){ var $this=$(this), zoom=$this.find('.zoom, .thumb-info-zoom').get(0); if(!zoom) return; $this.find('.zoom, .thumb-info-zoom').unbind('click'); var links=[]; var i=0; $this.find('article').each(function(){ var $that=$(this); if($that.css('display')!='none'){ var $zoom=$that.find('.zoom, .thumb-info-zoom'), slide, src=$zoom.data('src'), title=$zoom.data('title'); $zoom.data('index', i); if($.isArray(src)){ $.each(src, function(index, value){ slide={}; slide.src=value; slide.title=title[index]; links[i]=slide; i++; }); }else{ slide={}; slide.src=src; slide.title=title; links[i]=slide; i++; }} }); $this.find('article').each(function(){ var $that=$(this); if($that.css('display')!='none'){ $that.off('click', '.zoom, .thumb-info-zoom').on('click', '.zoom, .thumb-info-zoom', function(e){ var $zoom=$(this), $parent=$zoom.parents('.thumb-info'), offset=0; if($parent.get(0)){ var $slider=$parent.find('.porto-carousel'); if($slider.get(0)){ offset=$slider.data('owl.carousel').current() - $slider.find('.cloned').length / 2; }} e.preventDefault(); $.magnificPopup.close(); $.magnificPopup.open($.extend(true, {}, theme.mfpConfig, { items: links, gallery: { enabled: true }, type: 'image' }), $zoom.data('index') + offset); return false; }); }}); }); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { PostsInfinite: { defaults: { elements: '.posts-infinite', itemSelector: '.posts-infinite .post, .posts-infinite .timeline-date' }, initialize: function($elements, itemSelector){ this.$elements=($elements||$(this.defaults.elements)); this.itemSelector=(itemSelector||this.defaults.itemSelector); this.build() .events(); return this; }, build: function(){ var self=this; self.$elements.each(function(){ var $this=$(this), curr_page=$this.attr('data-pagenum'), max_page=$this.attr('data-pagemaxnum'), page_path=$this.attr('data-path'); $this.infinitescroll($.extend(theme.infiniteConfig, { itemSelector:self.itemSelector, state:{ currPage: curr_page }, maxPage: max_page, pathParse:function(a, b){ return [page_path, '/']; }}), function(posts){ var $posts=$(posts); theme.refreshVCContent($posts); porto_init(); if($this.closest('.blog-posts').hasClass('blog-posts-related')){ theme.FilterZoom.initialize($this.closest('.blog-posts')); } if($().isotope){ if($this.hasClass('grid')){ if($this.data('isotope')){ $this.isotope('appended', $posts).isotope('layout'); } $posts.waitForImages(function(){ self.resize(); }); }} }); }); self.resize(); return self; }, resize: function(){ var self=this; if(self.resizeTimer) clearTimeout(self.resizeTimer); self.resizeTimer=setTimeout(function(){ self.$elements.each(function(){ var $this=$(this); if($().isotope){ if($this.data('isotope')){ $this.isotope('layout'); }} }); delete self.resizeTimer; }, 800); return self; }, events: function(){ var self=this; $(window).on('resize', function(){ self.resize(); }); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var activePortfolioAjaxOnPage; $.extend(theme, { PortfolioAjaxPage: { defaults: { elements: '.page-portfolios' }, initialize: function($elements){ this.$elements=($elements||$(this.defaults.elements)); this.build(); return this; }, build: function(){ var self=this; self.$elements.each(function(){ var $this=$(this); if(!$this.find('#portfolioAjaxBox').get(0)) return; var $container=$(this), portfolioAjaxOnPage={ $wrapper: $container, pages: [], currentPage: 0, total: 0, $ajaxBox: $this.find('#portfolioAjaxBox'), $ajaxBoxContent: $this.find('#portfolioAjaxBoxContent'), build: function(){ var self=this; self.pages=[]; self.total=0; $this.find('a[data-ajax-on-page]').each(function(){ self.add($(this)); }); $this.off('mousedown', 'a[data-ajax-on-page]').on('mousedown', 'a[data-ajax-on-page]', function (ev){ if(ev.which==2){ ev.preventDefault(); return false; }}); }, add: function($el){ var self=this, href=$el.attr('href'); self.pages.push(href); self.total++; $el.off('click').on('click', function(e){ e.preventDefault(); var _class=e.target.className if(_class=='owl-next'){ return false; }else if(_class=='owl-prev'){ return false; }else{ self.show(self.pages.indexOf(href)); } return false; }); }, events: function(){ var self=this; $this.off('click', 'a[data-ajax-portfolio-close]').on('click', 'a[data-ajax-portfolio-close]', function(e){ e.preventDefault(); self.close(); return false; }); if(self.total <=1){ $('a[data-ajax-portfolio-prev], a[data-ajax-portfolio-next]').remove(); }else{ $this.off('click', 'a[data-ajax-portfolio-prev]').on('click', 'a[data-ajax-portfolio-prev]', function(e){ e.preventDefault(); self.prev(); return false; }); $this.off('click', 'a[data-ajax-portfolio-next]').on('click', 'a[data-ajax-portfolio-next]', function(e){ e.preventDefault(); self.next(); return false; }); }}, close: function(){ var self=this; if(self.$ajaxBoxContent.find('.rev_slider').get(0)){ try {self.$ajaxBoxContent.find('.rev_slider').revkill();} catch(err){}} self.$ajaxBoxContent.empty(); self.$ajaxBox.removeClass('ajax-box-init').removeClass('ajax-box-loading'); }, next: function(){ var self=this; if(self.currentPage + 1 < self.total){ self.show(self.currentPage + 1); }else{ self.show(0); }}, prev: function(){ var self=this; if((self.currentPage - 1) >=0){ self.show(self.currentPage - 1); }else{ self.show(self.total - 1); }}, show: function(i){ var self=this; activePortfolioAjaxOnPage=null; if(self.$ajaxBoxContent.find('.rev_slider').get(0)){ try {self.$ajaxBoxContent.find('.rev_slider').revkill();} catch(err){}} self.$ajaxBoxContent.empty(); self.$ajaxBox.removeClass('ajax-box-init').addClass('ajax-box-loading'); theme.scrolltoContainer(self.$ajaxBox); self.currentPage=i; if(i < 0||i > (self.total-1)){ self.close(); return false; } $.ajax({ url: self.pages[i], complete: function(data){ var $response=$(data.responseText), $portfolio=$response.find('#content article.portfolio'), $vc_css=$response.filter('style[data-type]:not("")'), vc_css=''; $vc_css.each(function(){ vc_css +=$(this).text(); }); if($('#portfolioAjaxCSS').get(0)){ $('#portfolioAjaxCSS').text(vc_css); }else{ $('').appendTo("head") } $portfolio.find('.portfolio-nav-all').html(''); $portfolio.find('.portfolio-nav').html(''); self.$ajaxBoxContent.html($portfolio.html()).append(' '); self.$ajaxBox.removeClass('ajax-box-loading'); $(window).trigger('resize'); porto_init(); theme.refreshVCContent(self.$ajaxBoxContent); self.events(); activePortfolioAjaxOnPage=self; }}); }}; portfolioAjaxOnPage.build(); $this.data('portfolioAjaxOnPage', portfolioAjaxOnPage); }); return self; }} }); $(document.documentElement).on('keyup', function(e){ try { if(!activePortfolioAjaxOnPage) return; if(e.keyCode==39){ activePortfolioAjaxOnPage.next(); } if(e.keyCode==37){ activePortfolioAjaxOnPage.prev(); }} catch(err){}}); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var $rev_sliders; $.extend(theme, { PortfolioAjaxModal: { defaults: { elements: '.page-portfolios' }, initialize: function($elements){ this.$elements=($elements||$(this.defaults.elements)); this.build(); return this; }, build: function(){ var self=this; self.$elements.each(function(){ var $this=$(this); if(!$this.find('a[data-ajax-on-modal]').get(0)) return; var $container=$(this), portfolioAjaxOnModal={ $wrapper: $container, modals: [], currentModal: 0, total: 0, build: function(){ var self=this; self.modals=[]; self.total=0; $this.find('a[data-ajax-on-modal]').each(function(){ self.add($(this)); }); $this.off('mousedown', 'a[data-ajax-on-modal]').on('mousedown', 'a[data-ajax-on-modal]', function (ev){ if(ev.which==2){ ev.preventDefault(); return false; }}); }, add: function($el){ var self=this, href=$el.attr('href'), index=self.total; self.modals.push({src: href}); self.total++; $el.off('click').on('click', function(e){ e.preventDefault(); self.show(index); return false; }); }, next: function(){ var self=this; if(self.currentModal + 1 < self.total){ self.show(self.currentModal + 1); }else{ self.show(0); }}, prev: function(){ var self=this; if((self.currentModal - 1) >=0){ self.show(self.currentModal - 1); }else{ self.show(self.total - 1); }}, show: function(i){ var self=this; self.currentModal=i; if(i < 0||i > (self.total-1)){ return false; } $.magnificPopup.close(); $.magnificPopup.open($.extend(true, {}, theme.mfpConfig, { type: 'ajax', items: self.modals, gallery: { enabled: true }, ajax: { settings: { type: 'post', data: { ajax_action: 'portfolio_ajax_modal' }} }, mainClass: 'portfolio-ajax-modal', callbacks: { parseAjax: function(mfpResponse){ var $response=$(mfpResponse.data), $portfolio=$response.find('#content article.portfolio'), $vc_css=$response.filter('style[data-type]:not("")'), vc_css=''; $vc_css.each(function(){ vc_css +=$(this).text(); }); if($('#portfolioAjaxCSS').get(0)){ $('#portfolioAjaxCSS').text(vc_css); }else{ $('').appendTo("head") } $portfolio.find('.portfolio-nav-all').html(''); $portfolio.find('.portfolio-nav').html(''); mfpResponse.data='' + $portfolio.html() + ''; }, ajaxContentAdded: function(){ var $wrapper=$('.portfolio-ajax-modal'); $wrapper.find('a[data-ajax-portfolio-close]').on('click', function(e){ e.preventDefault(); $.magnificPopup.close(); return false; }); $rev_sliders=$wrapper.find('.rev_slider'); if(self.modals.length <=1){ $wrapper.find('a[data-ajax-portfolio-prev], a[data-ajax-portfolio-next]').remove(); }else{ $wrapper.find('a[data-ajax-portfolio-prev]').on('click', function(e){ e.preventDefault(); if($rev_sliders&&$rev_sliders.get(0)){ try {$rev_sliders.revkill();} catch(err){}} $wrapper.find('.mfp-arrow-left').trigger('click'); return false; }); $wrapper.find('a[data-ajax-portfolio-next]').on('click', function(e){ e.preventDefault(); if($rev_sliders&&$rev_sliders.get(0)){ try {$rev_sliders.revkill();} catch(err){}} $wrapper.find('.mfp-arrow-right').trigger('click'); return false; }); } $(window).trigger('resize'); porto_init(); theme.refreshVCContent($wrapper); setTimeout(function(){ var videos=$wrapper.find('video'); if(videos.get(0)){ videos.each(function(){ $(this)[0].play(); $(this).parent().parent().parent().find('.video-controls').attr('data-action','play'); $(this).parent().parent().parent().find('.video-controls').html(''); }); }}, 600); $wrapper.off('scroll').on('scroll', function(){ $.fn.appear.run(); }); }, change: function(){ $('.mfp-wrap .ajax-container').click(); }, beforeClose: function(){ if($rev_sliders&&$rev_sliders.get(0)){ try {$rev_sliders.revkill();} catch(err){}} var $wrapper=$('.portfolio-ajax-modal'); $wrapper.off('scroll'); }} }), i); }}; portfolioAjaxOnModal.build(); $this.data('portfolioAjaxOnModal', portfolioAjaxOnModal); }); return self; }} }); $(document.documentElement).on('keydown', function(e){ try { if(e.keyCode==37||e.keyCode==39){ if($rev_sliders&&$rev_sliders.get(0)){ $rev_sliders.revkill(); }} } catch(err){}}); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { PortfoliosInfinite: { defaults: { elements: '.portfolios-infinite', itemSelector: '.portfolios-infinite .portfolio, .portfolios-infinite .timeline-date' }, initialize: function($elements, itemSelector){ this.$elements=($elements||$(this.defaults.elements)); this.itemSelector=(itemSelector||this.defaults.itemSelector); this.build() .events(); return this; }, build: function(){ var self=this; self.$elements.each(function(){ var $this=$(this), curr_page=$this.attr('data-pagenum'), max_page=$this.attr('data-pagemaxnum'), page_path=$this.attr('data-path'); $this.infinitescroll($.extend(theme.infiniteConfig, { itemSelector:self.itemSelector, state:{ currPage: curr_page }, maxPage: max_page, pathParse:function(a, b){ return [page_path, '/']; }}), function(posts){ var $posts=$(posts); theme.refreshVCContent($posts); porto_init(); $posts.each(function(){ var img_src=$(this).find('.thumb-info-wrapper').children('img').attr('src'); $this.find('.porto-portfolios-lighbox-thumbnails > div').append('');; }); var $parent=$this.closest('.page-portfolios'); if($parent.hasClass('portfolios-timeline')){ var selected=0; if($parent.find('.portfolio-filter').length){ var selector=$parent.find('.portfolio-filter .active').attr('data-filter'), easing="easeInOutQuart", timeout=300; $posts.each(function(){ var $that=$(this); if(selector=='*'){ if($that.css('display')=='none') $that.stop().slideDown(timeout, easing, function(){ $(this).attr('style', '').show(); }); selected++; }else{ if($that.hasClass(selector)){ if($that.css('display')=='none') $that.stop().slideDown(timeout, easing, function(){ $(this).attr('style', '').show(); }); selected++; }else{ $that.stop().hide(); }} }); } if(!selected&&$parent.find('.portfolios-infinite').length){ $parent.find('.portfolios-infinite').infinitescroll('retrieve'); } theme.FilterZoom.initialize($parent); }else{ if($().isotope){ if($this.data('isotope')){ $this.isotope('appended', $posts).isotope('layout'); } $posts.waitForImages(function(){ self.resize(); }); }} if($parent.data('portfolioAjaxOnPage')){ $parent.data('portfolioAjaxOnPage').build(); } if($parent.data('portfolioAjaxOnModal')){ $parent.data('portfolioAjaxOnModal').build(); }}); }); self.resize(); return self; }, resize: function(){ var self=this; if(self.resizeTimer) clearTimeout(self.resizeTimer); self.resizeTimer=setTimeout(function(){ self.$elements.each(function(){ var $this=$(this); if($().isotope){ if($this.data('isotope')){ $this.isotope('layout'); }} }); delete self.resizeTimer; }, 800); return self; }, events: function(){ var self=this; $(window).on('resize', function(){ self.resize(); }); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { PortfolioFilter: { defaults: { elements: '.portfolio-filter' }, initialize: function($elements){ this.$elements=($elements||$(this.defaults.elements)); this.build(); return this; }, build: function(){ var self=this; self.$elements.each(function(){ var $this=$(this); $this.find('li').on('click', function(e){ e.preventDefault(); var selector=$(this).attr('data-filter'), position=$this.data('position'), $parent; $this.find('.active').removeClass('active'); if(position=='sidebar'){ $parent=$('.main-content .page-portfolios'); theme.scrolltoContainer($parent); $('.sidebar-overlay').click(); }else if(position=='global'){ $parent=$('.main-content .page-portfolios'); }else{ $parent=$(this).closest('.page-portfolios'); } if($parent.hasClass('portfolios-timeline')){ var selected=0; $parent.find('.portfolio').each(function(){ var $that=$(this), easing="easeInOutQuart", timeout=300; if(selector=='*'){ if($that.css('display')=='none') $that.stop(true).slideDown(timeout, easing, function(){ $(this).attr('style', '').show(); }); selected++; }else{ if($that.hasClass(selector)){ if($that.css('display')=='none') $that.stop(true).slideDown(timeout, easing, function(){ $(this).attr('style', '').show(); }); selected++; }else{ if($that.css('display')!='none') $that.stop(true).slideUp(timeout, easing, function(){ $(this).attr('style', '').hide(); }); }} }); if(!selected&&$parent.find('.portfolios-infinite').length){ $parent.find('.portfolios-infinite').infinitescroll('retrieve'); } setTimeout(function(){ theme.FilterZoom.initialize($parent); }, 400); }else{ $parent.find('.portfolio-row').isotope({ filter: selector=='*' ? selector:'.' + selector }); } $(this).addClass('active'); if(position=='sidebar'){ self.$elements.each(function(){ var $that=$(this); if($that==$this&&$that.data('position')!='sidebar') return; $that.find('li').removeClass('active'); $that.find('li[data-filter="' + selector + '"]').addClass('active'); }); } window.location.hash='#' + selector; theme.refreshVCContent(); }); }); function hashchange(){ var $filter=$(self.$elements.get(0)), hash=window.location.hash; if(hash){ $filter.find('li[data-filter="' + hash.replace('#', '') + '"]').click(); }} $(window).on('hashchange', hashchange); hashchange(); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var activeMemberAjaxOnPage; $.extend(theme, { MemberAjaxPage: { defaults: { elements: '.page-members' }, initialize: function($elements){ this.$elements=($elements||$(this.defaults.elements)); this.build(); return this; }, build: function(){ var self=this; self.$elements.each(function(){ var $this=$(this); if(!$this.find('#memberAjaxBox').get(0)) return; var $container=$(this), memberAjaxOnPage={ $wrapper: $container, pages: [], currentPage: 0, total: 0, $ajaxBox: $this.find('#memberAjaxBox'), $ajaxBoxContent: $this.find('#memberAjaxBoxContent'), build: function(){ var self=this; self.pages=[]; self.total=0; $this.find('a[data-ajax-on-page]').each(function(){ self.add($(this)); }); $this.off('mousedown', 'a[data-ajax-on-page]').on('mousedown', 'a[data-ajax-on-page]', function (ev){ if(ev.which==2){ ev.preventDefault(); return false; }}); }, add: function($el){ var self=this, href=$el.attr('href'); self.pages.push(href); self.total++; $el.off('click').on('click', function(e){ e.preventDefault(); self.show(self.pages.indexOf(href)); return false; }); }, next: function(){ var self=this; if(self.currentPage + 1 < self.total){ self.show(self.currentPage + 1); }else{ self.show(0); }}, prev: function(){ var self=this; if((self.currentPage - 1) >=0){ self.show(self.currentPage - 1); }else{ self.show(self.total - 1); }}, show: function(i){ var self=this; activeMemberAjaxOnPage=null; if(self.$ajaxBoxContent.find('.rev_slider').get(0)){ try {self.$ajaxBoxContent.find('.rev_slider').revkill();} catch(err){}} self.$ajaxBoxContent.empty(); self.$ajaxBox.removeClass('ajax-box-init').addClass('ajax-box-loading'); theme.scrolltoContainer(self.$ajaxBox); self.currentPage=i; if(i < 0||i > (self.total-1)){ self.close(); return false; } $.ajax({ url: self.pages[i], complete: function(data){ var $response=$(data.responseText), $member=$response.find('#content article.member'), $vc_css=$response.filter('style[data-type]:not("")'), vc_css=''; $vc_css.each(function(){ vc_css +=$(this).text(); }); if($('#memberAjaxCSS').get(0)){ $('#memberAjaxCSS').text(vc_css); }else{ $('').appendTo("head") } var $append=self.$ajaxBox.find('.ajax-content-append'), html=''; if($append.length) html=$append.html(); self.$ajaxBoxContent.html($member.html()).prepend('').append('' + html); self.$ajaxBox.removeClass('ajax-box-loading'); $(window).trigger('resize'); porto_init(); theme.refreshVCContent(self.$ajaxBoxContent); activeMemberAjaxOnPage=self; }}); }}; memberAjaxOnPage.build(); $this.data('memberAjaxOnPage', memberAjaxOnPage); }); return self; }} }); $(document.documentElement).on('keyup', function(e){ try { if(!activeMemberAjaxOnPage) return; if(e.keyCode==39){ activeMemberAjaxOnPage.next(); } if(e.keyCode==37){ activeMemberAjaxOnPage.prev(); }} catch(err){}}); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { MembersInfinite: { defaults: { elements: '.members-infinite', itemSelector: '.members-infinite .member' }, initialize: function($elements, itemSelector){ this.$elements=($elements||$(this.defaults.elements)); this.itemSelector=(itemSelector||this.defaults.itemSelector); this.build() .events(); return this; }, build: function(){ var self=this; self.$elements.each(function(){ var $this=$(this), curr_page=$this.attr('data-pagenum'), max_page=$this.attr('data-pagemaxnum'), page_path=$this.attr('data-path'); $this.infinitescroll($.extend(theme.infiniteConfig, { itemSelector:self.itemSelector, state:{ currPage: curr_page }, maxPage: max_page, pathParse:function(a, b){ return [page_path, '/']; }}), function(posts){ var $posts=$(posts); theme.refreshVCContent($posts); porto_init(); if($().isotope){ if($this.data('isotope')){ $this.isotope('appended', $posts).isotope('layout'); } $posts.waitForImages(function(){ self.resize(); }); }}); }); self.resize(); return self; }, resize: function(){ var self=this; if(self.resizeTimer) clearTimeout(self.resizeTimer); self.resizeTimer=setTimeout(function(){ self.$elements.each(function(){ var $this=$(this); if($().isotope){ if($this.data('isotope')){ $this.isotope('layout'); }} }); delete self.resizeTimer; }, 800); return self; }, events: function(){ var self=this; $(window).on('resize', function(){ self.resize(); }); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { MemberFilter: { defaults: { elements: '.member-filter' }, initialize: function($elements){ this.$elements=($elements||$(this.defaults.elements)); this.build(); return this; }, build: function(){ var self=this; self.$elements.each(function(){ var $this=$(this); $this.find('li').on('click', function(e){ e.preventDefault(); var selector=$(this).attr('data-filter'), position=$this.data('position'), $parent; $this.find('.active').removeClass('active'); if(position=='sidebar'){ $parent=$('.main-content .page-members'); theme.scrolltoContainer($parent); $('.sidebar-overlay').click(); }else if(position=='global'){ $parent=$('.main-content .page-members'); }else{ $parent=$(this).closest('.page-members'); } $parent.find('.member-row').isotope({ filter: selector=='*' ? selector:'.' + selector }); $(this).addClass('active'); if(position=='sidebar'){ self.$elements.each(function(){ var $that=$(this); if($that==$this&&$that.data('position')!='sidebar') return; $that.find('li').removeClass('active'); $that.find('li[data-filter="' + selector + '"]').addClass('active'); }); } window.location.hash='#' + selector; theme.refreshVCContent(); }); }); function hashchange(){ var $filter=$(self.$elements.get(0)), hash=window.location.hash; if(hash){ $filter.find('li[data-filter="' + hash.replace('#', '') + '"]').click(); }} $(window).on('hashchange', hashchange); hashchange(); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { SortFilter: { defaults: { filters: '.porto-sort-filters ul', elements: '.porto-sort-container .row' }, initialize: function($elements, $filters){ this.$elements=($elements||$(this.defaults.elements)); this.$filters=($filters||$(this.defaults.filters)); this.build(); return this; }, build: function(){ var self=this; self.$elements.each(function(){ var $this=$(this); $this.isotope({ itemSelector: '.porto-sort-item', layoutMode: 'masonry', getSortData: { popular: '[data-popular] parseInt' }, sortBy: 'popular', isOriginLeft:!theme.rtl }); $this.waitForImages(function(){ if($this.data('isotope')){ $this.isotope('layout'); }}); }); self.$filters.each(function(){ var $this=$(this); var id=$this.attr('data-sort-id'); var $container=$('#' + id); if($container.length){ $this.on('click', 'li', function(e){ e.preventDefault(); var $that=$(this); $this.find('li').removeClass('active'); $that.addClass("active"); var sortByValue=$that.attr('data-sort-by'); $container.isotope({sortBy: sortByValue}); var filterByValue=$that.attr('data-filter-by'); if(filterByValue){ $container.isotope({filter: filterByValue}); }else{ $container.isotope({filter: '.porto-sort-item'}); } theme.refreshVCContent(); }); $this.find('li[data-active]').click(); }}); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ $(function(){ $(document).on('click', '#grid', function(e){ e.preventDefault(); $(this).addClass('active'); $('#list').removeClass('active'); if(($.cookie&&$.cookie('gridcookie')=='list')||!$.cookie){ var $toggle=$('.gridlist-toggle'); if($toggle.length){ var $parent=$toggle.parent().parent(); var $products=$parent.find('ul.products'); $products.fadeOut(300, function(){ $products.addClass('grid').removeClass('list').fadeIn(300); theme.refreshVCContent(); }); }} if($.cookie) $.cookie('gridcookie', 'grid', { path: '/' }); return false; }); $(document).on('click', '#list', function(e){ e.preventDefault(); $(this).addClass('active'); $('#grid').removeClass('active'); if(($.cookie&&$.cookie('gridcookie')=='grid')||!$.cookie){ var $toggle=$('.gridlist-toggle'); if($toggle.length){ var $parent=$toggle.parent().parent(); var $products=$parent.find('ul.products'); $products.fadeOut(300, function(){ $products.addClass('list').removeClass('grid').fadeIn(300); theme.refreshVCContent(); }); }} if($.cookie) $.cookie('gridcookie', 'list', { path: '/' }); return false; }); }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ var $supports_html5_storage; try { $supports_html5_storage=('sessionStorage' in window&&window.sessionStorage!==null); window.sessionStorage.setItem('wc', 'test'); window.sessionStorage.removeItem('wc'); } catch(err){ $supports_html5_storage=false; } var setCartCreationTimestamp=function(){ if($supports_html5_storage){ sessionStorage.setItem('wc_cart_created',(new Date()).getTime()); }}; var setCartHash=function(cart_hash){ if($supports_html5_storage){ localStorage.setItem('wc_cart_hash', cart_hash); sessionStorage.setItem('wc_cart_hash', cart_hash); }}; var initAjaxRemoveCartItem=function(){ $('#mini-cart .cart_list').scrollbar(); $(document).off('click', '.widget_shopping_cart .remove-product, .shop_table.cart .remove-product').on('click', '.widget_shopping_cart .remove-product, .shop_table.cart .remove-product', function(e){ e.preventDefault(); var $this=$(this); var cart_id=$this.data("cart_id"); var product_id=$this.data("product_id"); $this.closest('li').find('.ajax-loading').show(); $.ajax({ type: 'POST', dataType: 'json', url: theme.ajax_url, data: { action: "porto_cart_item_remove", cart_id: cart_id }, success: function(response){ var this_page=window.location.toString(), item_count=$(response.fragments['div.widget_shopping_cart_content']).find('.mini_cart_item').length; this_page=this_page.replace('add-to-cart', 'added-to-cart'); updateCartFragment(response); $(document.body).trigger('wc_fragments_refreshed'); $('.viewcart-' + product_id).removeClass('added'); $('.porto_cart_item_' + cart_id).remove(); if(item_count==0&&($('body').hasClass('woocommerce-cart')||$('body').hasClass('woocommerce-checkout'))){ $('.page-content').fadeTo('400', '0.8').block({ message: null, overlayCSS: { opacity: 0.6 }}); }else{ $('.shop_table.cart, .shop_table.review-order, .updating, .cart_totals').fadeTo('400', '0.8').block({ message: null, overlayCSS: { opacity: 0.6 }}); } $('.widget_shopping_cart, .updating').stop(true).css('opacity', '1').unblock(); if(item_count==0&&($('body').hasClass('woocommerce-cart')||$('body').hasClass('woocommerce-checkout'))){ $('.page-content').load(this_page + ' .page-content:eq(0) > *', function(){ $('.page-content').stop(true).css('opacity', '1').unblock(); }); }else{ $('.shop_table.cart').load(this_page + ' .shop_table.cart:eq(0) > *', function(){ $('.shop_table.cart').stop(true).css('opacity', '1').unblock(); }); $('.cart_totals').load(this_page + ' .cart_totals:eq(0) > *', function(){ $('.cart_totals').stop(true).css('opacity', '1').unblock(); }); $('.shop_table.review-order').load(this_page + ' .shop_table.review-order:eq(0) > *', function(){ $('.shop_table.review-order').stop(true).css('opacity', '1').unblock(); }); }} }); return false; }); }; var refreshCartFragment=function(){ initAjaxRemoveCartItem(); if($.cookie('woocommerce_items_in_cart') > 0){ $('.hide_cart_widget_if_empty').closest('.widget_shopping_cart').show(); }else{ $('.hide_cart_widget_if_empty').closest('.widget_shopping_cart').hide(); }}; var updateCartFragment=function(data){ if(data&&data.fragments){ var fragments=data.fragments, cart_hash=data.cart_hash; $.each(fragments, function(key, value){ $(key).replaceWith(value); }); if(typeof wc_cart_fragments_params==='undefined'){ return; } if($supports_html5_storage){ var prev_cart_hash=sessionStorage.getItem('wc_cart_hash'); if(prev_cart_hash===null||prev_cart_hash===undefined||prev_cart_hash===''){ setCartCreationTimestamp(); } sessionStorage.setItem(wc_cart_fragments_params.fragment_name, JSON.stringify(fragments)); setCartHash(cart_hash); }} }; $(function(){ refreshCartFragment(); $(document).on('click', '.add_to_cart_button', function(e){ var $this=$(this); if($this.is('.product_type_simple')){ if($this.attr('data-product_id')){ $this.addClass('product-adding'); }} }); $(document).on('click', 'span.add_to_cart_button', function(e){ var $this=$(this); if($this.is('.product_type_simple')){ if(!$this.attr('data-product_id')){ window.location.href=$this.attr('href'); }}else{ window.location.href=$this.attr('href'); }}); $('body').bind('added_to_cart', function(){ $('ul.products li.product .added_to_cart').remove(); initAjaxRemoveCartItem(); }); $(document.body).bind('wc_fragments_refreshed wc_fragments_loaded', function(){ refreshCartFragment(); }); $(document).on('click', '.product-image .viewcart', function(e){ var link=$(this).attr('data-link'); window.location.href=link; e.preventDefault(); }); $(document).on('added_to_cart', 'body', function(event){ $('.add_to_cart_button.product-adding').each(function(){ var $link=$(this); $link.removeClass('product-adding'); $link.closest('.product').find('.viewcart').addClass('added'); }); }); }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ var expr=/[.#\w].([\S]*)/g, classexpr=/(?!(\[))(\.)[^.#[]*/g, idexpr=/(#)[^.#[]*/, tagexpr=/^[\w]+/, varexpr=/(\w+?)=(['"])([^\2$]*?)\2/, simpleselector=/^[\w]+$/, parseSelector=function (d){ for (var c={sel: [], val: []}, a=[], j = !1, h="", e=[], f=0, m=d.length; f < m; f++){ var g=d.charAt(f); if(j)if("\\"===g&&f + 1 < d.length)e.push(d.charAt(++f)); else if(h===g)h="", e.push(g); else if(("'"===g||'"'===g)&&""===h)h=g, e.push(g); else if("]"===g&&""===h)c.val.push(e.join("")), e=[], j = !1; else { if("]"!==g||""!==h)""===h&&","===g ? (c.val.push(e.join("")), e=[]):e.push(g) } else"\\"===g&&f + 1 < d.length ? j&&e.push(d.charAt(++f)):"["===g&&""===h ? j = !0:" "===g||"+"===g ? (c.sel=c.sel.join(""), a.push(c), "+"===g&&a.push({sel: "+", val: ""}), c={sel: [], val: []}):" "!==g&&"]"!==g&&c.sel.push(g) } if(0!=c.sel.length||0!=c.val.length)c.sel=c.sel.join(""), a.push(c); for (f=0; f < a.length; f++){ c=a[f].sel; if("+"===c)b.tag=c; else { var b=[]; b.tag=tagexpr.exec(c); b.id=idexpr.exec(c); b.id&&$.isArray(b.id)&&(b.id=b.id[0].substr(1)); b.tag||(b.tag="div"); b.vars=[]; for (d=0; d < a[f].val.length; d++)h = a[f].val[d].indexOf("="), j=a[f].val[d].substr(0, h), h=a[f].val[d].substr(h + 1), h=h.replace(/^[\s]*[\"\']*|[\"\']*[\s]*$/g, ""), "text"===j ? b.text=h:b.vars.push([j, h]); c=c.match(classexpr); j=[]; if(c){ for (d=0; d < c.length; d++)j.push(c[d].substr(1)); b.className=j.join(" ") }} a[f]=b } return a }, rmFromParent=function (d){ var c=d.parentNode, a=d.nextSibling; c.removeChild(d); return a ? function (){ c.insertBefore(d, a) }:function (){ c.appendChild(d) }}, nonArrVer=function (d, c){ var a=[], a=simpleselector.test(d) ? [ {tag: d} ]:parseSelector(d), j=[]; "undefined"===typeof c&&(c=1); for (var h=[], e=[], f=[], m=document.createElement("div"), g=0, b=0; b < a.length; b++){ if("+"==a[b].tag)e=f.slice(), --g; else { for (var l=0; l < c; l++)if("input"==a[b].tag){ var k=[]; k.push("<" + a[b].tag); a[b].id&&k.push("id='" + a[b].id + "'"); a[b].className&&(k.push("class='" + a[b].className), b + 1===a.length&&k.push(lastClass), k.push("'")); if(a[b].vars)for (var n=0; n < a[b].vars.length; n++)k.push(a[b].vars[n][0] + "='" + a[b].vars[n][1] + "'"); a[b].text&&k.push("value='" + a[b].text + "'"); k.push("/>"); f[l]=e[l]; e[l] ? (e[l].innerHTML +=k.join(" "), e[l]=e[l].lastChild):(m.innerHTML=k.join(" "), e[l]=m.removeChild(m.firstChild)) }else{ k=document.createElement(a[b].tag); if(a[b].vars)for (n=0; n < a[b].vars.length; n++)k.setAttribute(a[b].vars[n][0], a[b].vars[n][1]); a[b].id&&(k.id=a[b].id); a[b].className&&(k.className=a[b].className); a[b].text&&k.appendChild(document.createTextNode(a[b].text)); f[l]=e[l]; e[l]=e[l] ? e[l].appendChild(k):k } g++||Array.prototype.push.apply(h, e) } j = $.merge(j, e) } return $(h) }, arrVer=function (d, c, a){ for (var j=d.match(/%[^%]*%/g)||[], h=[], e=0; e < c.length; e++){ for (var f=d, m=0; m < j.length; m++)var g=j[m].substr(1, j[m].length - 2), f=f.replace(j[m], c[e][g]); h=$.merge(h, nonArrVer(f, a)) } return $(h) }; $.porto_jseldom=function (d){ if(2==arguments.length&&$.isPlainObject(arguments[1]))return arrVer.apply(this, [arguments[0], [arguments[1]]]); if(1==arguments.length||2==arguments.length&&!$.isArray(arguments[1]))return nonArrVer.apply(this, arguments); if(2==arguments.length)return arrVer.apply(this, arguments) }; var refreshPriceSlider=function(){ var $price_slider=$('.price_slider'); if($price_slider.length){ if(typeof woocommerce_price_slider_params==='undefined'){ return false; } $('input#min_price, input#max_price').hide(); $('.price_slider, .price_label').show(); var min_price=$('.price_slider_amount #min_price').data('min'), max_price=$('.price_slider_amount #max_price').data('max'), current_min_price=parseInt($('.price_slider_amount #min_price').val() ? $('.price_slider_amount #min_price').val():min_price, 10), current_max_price=parseInt($('.price_slider_amount #max_price').val() ? $('.price_slider_amount #max_price').val():max_price, 10); $('.price_slider').slider({ range: true, animate: true, min: min_price, max: max_price, values: [ current_min_price, current_max_price ], create: function(){ $('.price_slider_amount #min_price').val(current_min_price); $('.price_slider_amount #max_price').val(current_max_price); $(document.body).trigger('price_slider_create', [ current_min_price, current_max_price ]); }, slide: function(event, ui){ $('input#min_price').val(ui.values[0]); $('input#max_price').val(ui.values[1]); $(document.body).trigger('price_slider_slide', [ ui.values[0], ui.values[1] ]); }, change: function(event, ui){ $(document.body).trigger('price_slider_change', [ ui.values[0], ui.values[1] ]); }}); } $('.yith-woo-ajax-navigation, .yith-wcan-list-price-filter').removeClass('loading'); }; var categoryAjaxProcess=function(href){ var shop_before='.shop-loop-before', shop_after='.shop-loop-after', shop_container='.archive-products .products', shop_info='.archive-products .woocommerce-info', $shop_parent=$(shop_before).parent(), $sticky_sidebar=$('.sidebar [data-plugin-sticky]'), show_toolbar=$(shop_before).data('show'); if(show_toolbar) $(shop_before + ',' + shop_after).stop(true).fadeTo('400','0.8').block({message: null, overlayCSS: {opacity: 0.6}}); if($(shop_container).length) $(shop_container).html('').addClass('yith-wcan-loading'); else $(shop_info).html('').addClass('yith-wcan-loading products'); if($sticky_sidebar.get(0)){ $shop_parent.css('min-height', $sticky_sidebar.height()); theme.refreshStickySidebar(false); } theme.scrolltoContainer(show_toolbar ? $(shop_before):$(shop_container)); $('.yith-woo-ajax-navigation, .yith-wcan-list-price-filter').addClass('loading'); var cart_content, widget_cart; if(widget_cart=$('.sidebar-content .widget_shopping_cart').get(0)){ cart_content=$(widget_cart).html(); } $.ajax({ url:href, success: function (response){ var $parent=$(shop_container).parent(), $response=$(response); if($sticky_sidebar.get(0)) $shop_parent.css('min-height', 0); if($response.find(shop_container).length){ $parent.html($response.find(shop_container)); }else{ $parent.html($response.find('.woocommerce-info')); $parent.find('.woocommerce-info').addClass('products'); } if($(shop_before + ',' + shop_after).get(0)) $(shop_before + ',' + shop_after).stop(true).css('opacity', '1').unblock(); if($response.find(shop_before).length){ if($(shop_before).length==0){ $.porto_jseldom(shop_before).insertAfter($(shop_container)); } $(shop_before) .html($response.find(shop_before).html()) .show(); }else{ $(shop_before).empty(); } if($response.find(shop_after).length){ $(shop_after).html($response.find(shop_after).html()).show(); }else{ $(shop_after).empty(); } $('.sidebar-content').each(function(index){ var $this=$(this), $that=$($response.find('.sidebar-content').get(index)); $this.html($that.html()); }); var $script=$response.filter('script:contains("var woocommerce_price_slider_params")').first(); if($script){ eval($script.text()); window.woocommerce_price_slider_params=woocommerce_price_slider_params; }else{ window.woocommerce_price_slider_params=undefined; } if(!navigator.userAgent.match(/msie/i)){ window.history.pushState({"pageTitle": response.pageTitle}, "", href); } $(document).trigger("yith-wcan-ajax-filtered"); if(widget_cart=$('.sidebar-content .widget_shopping_cart').get(0)){ $('.sidebar-content .widget_shopping_cart').html(cart_content); if($.cookie('woocommerce_items_in_cart') > 0){ $('.hide_cart_widget_if_empty').closest('.widget_shopping_cart').show(); }else{ $('.hide_cart_widget_if_empty').closest('.widget_shopping_cart').hide(); }} }}); }; var categoryAjax=function (){ $('.widget_price_filter').addClass('yith-wcan-list-price-filter'); if(theme.category_ajax){ $('.woocommerce-ordering').off('change', 'select.orderby').on('change', 'select.orderby', function(e){ e.preventDefault(); var $this=$(this), $form=$this.closest('form'), href='?' + $form.serialize(); categoryAjaxProcess(href); }); $('.woocommerce-viewing').off('change', 'select.count').on('change', 'select.count', function(e){ e.preventDefault(); var $this=$(this), $form=$this.closest('form'), href='?' + $form.serialize(); categoryAjaxProcess(href); }); $('.woocommerce-pagination').off('click', 'a.page-numbers').on('click', 'a.page-numbers', function(e){ e.preventDefault(); var href=this.href; categoryAjaxProcess(href); }); $(document).off('click', '.yith-wcan a').on('click', '.yith-wcan a', function (e){ $(this).yith_wcan_ajax_filters(e, this); }); $('.widget_price_filter .price_slider_wrapper').off('click', '.button').on('click', '.button', function(e){ e.preventDefault(); var $this=$(this), $form=$this.closest('form'), action=$form.attr('action'), href=action + '?' + $form.serialize(), $count=$('.woocommerce-viewing select.count'); if($count.length){ var count=$('.woocommerce-viewing select.count').val(); if(count!=$count.find('option:not([disabled]):first').val()){ href +='&count=' + count; }} $('.widget_price_filter').removeClass('yith-wcan-list-price-filter'); categoryAjaxProcess(href); }); $('.widget_layered_nav, .widget_rating_filter, .widget_layered_nav_filters').off('click', 'a').on('click', 'a', function(e){ if($(this).hasClass('yit-wcan-select-open')) return; e.preventDefault(); var $this=$(this), href=$this.attr('href'), $count=$('.woocommerce-viewing select.count'); if($count.length){ var count=$('.woocommerce-viewing select.count').val(); if(count!=$count.find('option:not([disabled]):first').val()){ href +='&count=' + count; }} var yith_select=$this.closest('.yith-wcan-select'); if(yith_select.get(0)){ yith_select.parent().css({"opacity":0, "z-index":-1}); } categoryAjaxProcess(href); return false; }); $('.widget_layered_nav select').off('change').on('change', function(e){ e.preventDefault(); var $this=$(this), name=$this.attr('class').replace('dropdown_layered_nav_', ''), slug=$this.val(), href, $count=$('.woocommerce-viewing select.count'); href=window.location.href; href=href.replace(/\/page\/\d+/, "").replace("&", '&').replace("%2C", ','); var u=new Url(href); u.query['filtering']=1; u.query['filter_' + name]=slug; if($count.length){ var count=$('.woocommerce-viewing select.count').val(); if(count!=$count.find('option:not([disabled]):first').val()){ u.query['count']=count; }} href=u.toString(); categoryAjaxProcess(href); return false; }); }else{ $(document).on('change', '.woocommerce-viewing select.count', function(){ $(this).closest('form').submit(); }); }}; var ajaxFiltered=function(){ var shop_before='.shop-loop-before', shop_after='.shop-loop-after', shop_container='.archive-products .products', $shop_parent=$(shop_before).parent(), $sticky_sidebar=$('.sidebar [data-plugin-sticky]'); if($sticky_sidebar.get(0)){ $shop_parent.css('min-height', 0); } if($(shop_before + ',' + shop_after).get(0)) $(shop_before + ',' + shop_after).stop(true).fadeTo('400','1').unblock(); if($(shop_container).find('.product').get(0)){ $(shop_before + ',' + shop_after).show().data('show', true); }else{ $(shop_before + ',' + shop_after).hide().data('show', false); } porto_init(); $('.woocommerce-ordering').off('change', 'select.orderby').on('change', 'select.orderby', function(){ $(this).closest('form').submit(); }); refreshPriceSlider(); categoryAjax(); }; $(function(){ if(typeof yith_wcan!='undefined'){ yith_wcan.container='.archive-products .products'; yith_wcan.pagination='.shop-loop-before'; yith_wcan.result_count='.shop-loop-after'; } $(document).on('click', '.yith-wcan a', function(e){ var shop_before='.shop-loop-before', shop_after='.shop-loop-after', shop_container='.archive-products .products', shop_info='.archive-products .woocommerce-info', $shop_parent=$(shop_before).parent(), $sticky_sidebar=$('.sidebar [data-plugin-sticky]'), show_toolbar=$(shop_before).data('show'); if(show_toolbar) $(shop_before + ',' + shop_after).stop(true).show().fadeTo('400','0.8').block({message: null, overlayCSS: {opacity: 0.6}}); if($(shop_container).length) $(shop_container).html('').addClass('yith-wcan-loading'); else $(shop_info).html('').addClass('yith-wcan-loading products'); if($sticky_sidebar.get(0)){ $shop_parent.css('min-height', $sticky_sidebar.height()); theme.refreshStickySidebar(false); } $('.yith-woo-ajax-navigation, .yith-wcan-list-price-filter').addClass('loading'); theme.scrolltoContainer(show_toolbar ? $(shop_before):$(shop_container)); }); $(document).ready(function(){ ajaxFiltered(); }); $(document).on('yith-wcan-ajax-filtered', function(){ ajaxFiltered(); }); categoryAjax(); if(theme.prdctfltr_ajax){ $(document).on('change', '.woocommerce-viewing select.count', function(){ $(this).closest('form').submit(); }); $(document).on('click', '.woocommerce-pagination a.page-numbers', function(e){ theme.scrolltoContainer($('.shop-loop-before')); }); }}); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var duration=300, flag=false, thumbs_count=theme.product_thumbs_count; if(theme.product_zoom&&(!('ontouchstart' in document)||(('ontouchstart' in document)&&theme.product_zoom_mobile))){ var zoomConfig={ responsive: true, zoomWindowFadeIn: 200, zoomWindowFadeOut: 100, zoomType: js_porto_vars.zoom_type, cursor: 'grab' }; if(js_porto_vars.zoom_type=='lens'){ zoomConfig.scrollZoom=js_porto_vars.zoom_scroll; zoomConfig.lensSize=js_porto_vars.zoom_lens_size; zoomConfig.lensShape=js_porto_vars.zoom_lens_shape; zoomConfig.containLensZoom=js_porto_vars.zoom_contain_lens; zoomConfig.lensBorder=js_porto_vars.zoom_lens_border; zoomConfig.borderColour=js_porto_vars.zoom_border_color; } if(js_porto_vars.zoom_type=='inner'){ zoomConfig.borderSize=0; }else{ zoomConfig.borderSize=js_porto_vars.zoom_border; }} $.extend(theme, { WooProductImageSlider: { defaults: { elements: '.product-image-slider' }, initialize: function($elements){ this.$elements=($elements||$(this.defaults.elements)); this.build(); return this; }, build: function(){ var self=this; self.$elements.each(function(){ var $this=$(this), $product=$this.closest('.product'), $thumbs_slider=$product.find('.product-thumbs-slider'), currentSlide=0, count=$this.find('> *').length; $this.find('> *:first-child').waitForImages(true).done(function(){ $thumbs_slider.owlCarousel({ rtl: theme.rtl, loop:false, autoplay:false, items:thumbs_count, nav: false, navText: ["", ""], dots: false, rewind: true, margin: 7, stagePadding: 1, onInitialized: function(){ self.selectThumb(null, $thumbs_slider, 0); if($thumbs_slider.find('.owl-item').length >=thumbs_count) $thumbs_slider.append(''); }}).on('click', '.owl-item', function(){ self.selectThumb($this, $thumbs_slider, $(this).index()); }); $thumbs_slider.on('click', '.thumb-prev', function(e){ var currentThumb=$thumbs_slider.data('currentThumb'); self.selectThumb($this, $thumbs_slider, --currentThumb); }); $thumbs_slider.on('click', '.thumb-next', function(e){ var currentThumb=$thumbs_slider.data('currentThumb'); self.selectThumb($this, $thumbs_slider, ++currentThumb); }); if(theme.product_image_popup){ var links=[], i=0; $this.find('img').each(function(){ var slide={}; slide.src=$(this).attr('href'); slide.title=$(this).attr('alt'); links[i]=slide; i++; }); } $this.owlCarousel({ rtl: theme.rtl, loop:(count > 1) ? true:false, autoplay:false, items:1, autoHeight:true, nav: true, navText: ["", ""], dots: false, rewind: true, onInitialized:function(){ if(theme.product_zoom&&(!('ontouchstart' in document)||(('ontouchstart' in document)&&theme.product_zoom_mobile))){ $this.find('img').each(function(){ var $this=$(this); zoomConfig.zoomContainer=$this.parent(); $this.elevateZoom(zoomConfig); }); }}, onTranslate:function(event){ currentSlide=event.item.index - $this.find('.cloned').length / 2; self.selectThumb(null, $thumbs_slider, currentSlide); }, onRefreshed: function(){ if(theme.product_zoom&&(!('ontouchstart' in document)||(('ontouchstart' in document)&&theme.product_zoom_mobile))){ $this.find('img').each(function(){ var $this=$(this), src=$this.attr('src'), elevateZoom=$this.data('elevateZoom'); if(typeof elevateZoom!='undefined'){ elevateZoom.startZoom(); elevateZoom.swaptheimage(src, src); }}); }} }); $this.data('links', links); if(theme.product_image_popup){ var $zoom_buttons=$this.next(); $zoom_buttons.off('click').on('click', function(e){ e.preventDefault(); var options={index: currentSlide, event: e}; $.magnificPopup.close(); $.magnificPopup.open($.extend(true, {}, theme.mfpConfig, { items: $this.data('links'), gallery: { enabled: true }, type: 'image' }), currentSlide); }); }}); }); return self; }, selectThumb: function($image_slider, $thumbs_slider, index){ if(flag) return; flag=true; var len=$thumbs_slider.find('.owl-item').length, actives=[], i=0; index=(index + len) % len; if($image_slider){ $image_slider.trigger('to.owl.carousel', [index, duration, true]); } $thumbs_slider.find('.owl-item').removeClass('selected'); $thumbs_slider.find('.owl-item:eq(' + index + ')').addClass('selected'); $thumbs_slider.data('currentThumb', index); $thumbs_slider.find('.owl-item.active').each(function(){ actives[i++]=$(this).index(); }); if($.inArray(index, actives)==-1){ if(Math.abs(index - actives[0]) > Math.abs(index - actives[actives.length - 1])){ $thumbs_slider.trigger('to.owl.carousel', [(index - actives.length + 1) % len, duration, true]); }else{ $thumbs_slider.trigger('to.owl.carousel', [index % len, duration, true]); }} flag=false; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { WooQuickView: { initialize: function(){ this.events(); return this; }, events: function(){ var self=this; $(document).on('click', '.quickview', function(e){ e.preventDefault(); var pid=$(this).attr('data-id'); $.fancybox({ href:theme.ajax_url, ajax:{ data: { action: 'porto_product_quickview', pid: pid }}, type:'ajax', helpers:{ overlay: { locked: true, fixed: true }}, tpl: { error:'' + theme.request_error + '
', closeBtn:'', next:'', prev:'' }, autoSize: true, autoWidth:true, afterShow:function(){ setTimeout(function(){ porto_init(); theme.WooProductImageSlider.initialize($('.quickview-wrap-' + pid).find('.product-image-slider')); }, 200); }, onUpdate:function(){ setTimeout(function(){ porto_init(); var $slider=$('.quickview-wrap-' + pid).find('.product-image-slider'); if(typeof $slider.data('owl.carousel')!='undefined'&&typeof $slider.data('owl.carousel')._invalidated!='undefined') $slider.data('owl.carousel')._invalidated.width=true; $slider.trigger('refresh.owl.carousel'); }, 300); }}); return false; }); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { WooQtyField: { initialize: function(){ this.build() .events(); return this; }, build: function(){ var self=this; $('div.quantity:not(.buttons_added), td.quantity:not(.buttons_added)').addClass('buttons_added').append('').prepend(''); $('input.qty:not(.product-quantity input.qty)').each(function(){ var min=parseFloat($(this).attr('min')); if(min&&min > 0&&parseFloat($(this).val()) < min){ $(this).val(min); }}); $(document).off('click', '.plus, .minus').on('click', '.plus, .minus', function(){ var $qty=$(this).closest('.quantity').find('.qty'), currentVal=parseFloat($qty.val()), max=parseFloat($qty.attr('max')), min=parseFloat($qty.attr('min')), step=$qty.attr('step'); if(! currentVal||currentVal===''||currentVal==='NaN') currentVal=0; if(max===''||max==='NaN') max=''; if(min===''||min==='NaN') min=0; if(step==='any'||step===''||step===undefined||parseFloat(step)==='NaN') step=1; if($(this).is('.plus')){ if(max&&(max==currentVal||currentVal > max)){ $qty.val(max); }else{ $qty.val(currentVal + parseFloat(step)); }}else{ if(min&&(min==currentVal||currentVal < min)){ $qty.val(min); }else if(currentVal > 0){ $qty.val(currentVal - parseFloat(step)); }} $qty.trigger('change'); }); return self; }, events: function(){ var self=this; $(document).ajaxComplete(function(event, xhr, options){ self.build(); }); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; var duration=300; $.extend(theme, { WooVariationForm: { initialize: function(){ this.events(); return this; }, events: function(){ var self=this; $('.variations_form').each(function(){ var $variation_form=$(this), $reset_variations=$variation_form.find('.reset_variations'); if($reset_variations.css('visibility')=='hidden') $reset_variations.hide(); }); $(document).on('check_variations', '.variations_form', function(event, exclude, focus){ var $variation_form=$(this), $reset_variations=$variation_form.find('.reset_variations'); if($reset_variations.css('visibility')=='hidden') $reset_variations.hide(); }); $(document).on('reset_image', '.variations_form', function(event){ var $product=$(this).closest('.product'); var $product_img=$product.find('div.product-images .woocommerce-main-image'); var o_src=$product_img.attr('data-o_src'); var o_title=$product_img.attr('data-o_title'); var o_href=$product_img.attr('data-o_href'); var $thumb_img=$product.find('.woocommerce-main-thumb'); var o_thumb_src=$thumb_img.attr('data-o_src'); var $image_slider=$product.find('.product-image-slider'); var $thumbs_slider=$product.find('.product-thumbs-slider'); if($image_slider.length){ $image_slider.trigger('to.owl.carousel', [0, duration, true]); } if($thumbs_slider.length){ $thumbs_slider.trigger('to.owl.carousel', [0, duration, true]); $thumbs_slider.find('.owl-item:eq(0)').click(); } var links=$image_slider.data('links'); if(o_src){ $product_img .attr('src', o_src) .attr('srcset', '') .attr('alt', o_title) .attr('href', o_href); $product_img.each(function(){ var elevateZoom=$(this).data('elevateZoom'); if(typeof elevateZoom!='undefined'){ elevateZoom.swaptheimage($(this).attr('src'), $(this).attr('src')); }}); if(typeof links!='undefined'){ links[0].src=o_href; links[0].title=o_title; }} if(o_thumb_src){ $thumb_img.attr('src', o_thumb_src); }}); $(document).on('found_variation', '.variations_form', function(event, variation){ if(typeof variation=='undefined'){ return; } var $product=$(this).closest('.product'); var $image_slider=$product.find('.product-image-slider'); var $thumbs_slider=$product.find('.product-thumbs-slider'); if($image_slider.length){ $image_slider.trigger('to.owl.carousel', [0, duration, true]); } if($thumbs_slider.length){ $thumbs_slider.trigger('to.owl.carousel', [0, duration, true]); $thumbs_slider.find('.owl-item:eq(0)').click(); } var links=$image_slider.data('links'); var $shop_single_image=$product.find('div.product-images .woocommerce-main-image'); var productimage=$shop_single_image.attr('data-o_src'); var imagetitle=$shop_single_image.attr('data-o_title'); var imagehref=$shop_single_image.attr('data-o_href'); var $shop_thumb_image=$product.find('.woocommerce-main-thumb'); var thumbimage=$shop_thumb_image.attr('data-o_src'); var variation_image=variation.image_src; var variation_link=variation.image_link; var variation_title=variation.image_title; var variation_thumb=variation.image_thumb; if(! productimage){ productimage=(! $shop_single_image.attr('src')) ? '':$shop_single_image.attr('src'); $shop_single_image.attr('data-o_src', productimage); } if(! imagehref){ imagehref=(! $shop_single_image.attr('href')) ? '':$shop_single_image.attr('href'); $shop_single_image.attr('data-o_href', imagehref); } if(! imagetitle){ imagetitle=(! $shop_single_image.attr('alt')) ? '':$shop_single_image.attr('alt'); $shop_single_image.attr('data-o_title', imagetitle); } if(! thumbimage){ thumbimage=(! $shop_thumb_image.attr('src')) ? '':$shop_thumb_image.attr('src'); $shop_thumb_image.attr('data-o_src', thumbimage); } if(variation_image){ $shop_single_image.attr('src', variation_image) $shop_single_image.attr('srcset', '') $shop_single_image.attr('alt', variation_title) $shop_single_image.attr('href', variation_link); $shop_thumb_image.attr('src', variation_thumb); if(typeof links!='undefined'){ links[0].src=variation_link; links[0].title=variation_title; }}else{ $shop_single_image.attr('src', productimage) $shop_single_image.attr('srcset', '') $shop_single_image.attr('alt', imagetitle) $shop_single_image.attr('href', imagehref); $shop_thumb_image.attr('src', thumbimage); if(typeof links!='undefined'){ links[0].src=imagehref; links[0].title=imagetitle; }} $shop_single_image.each(function(){ var elevateZoom=$(this).data('elevateZoom'); if(typeof elevateZoom!='undefined'){ elevateZoom.swaptheimage($(this).attr('src'), $(this).attr('src')); }}); }); return self; }} }); }).apply(this, [window.theme, jQuery]); (function(theme, $){ theme=theme||{}; $.extend(theme, { WooEvents: { initialize: function(){ this.events(); return this; }, events: function(){ var self=this; $('.wcml-switcher li').on('click', function(){ if($(this).parent().attr('disabled')=='disabled') return; var currency=$(this).attr('rel'); self.loadCurrency(currency); }); $('.woocs-switcher li').on('click', function(){ if($(this).parent().attr('disabled')=='disabled') return; var currency=$(this).attr('rel'); self.loadWoocsCurrency(currency); }); return self; }, loadCurrency:function(currency){ $('.wcml-switcher').attr('disabled', 'disabled'); $('.wcml-switcher').append(''); var data={action: 'wcml_switch_currency', currency: currency} $.ajax({ type:'post', url:theme.ajax_url, data:{ action: 'wcml_switch_currency', currency:currency }, success: function(response){ $('.wcml-switcher').removeAttr('disabled'); $('.wcml-switcher').find('.loading').remove(); window.location=window.location.href; }}); }, loadWoocsCurrency:function(currency){ $('.woocs-switcher').attr('disabled', 'disabled'); $('.woocs-switcher').append(''); var l=window.location.href; l=l.split('?'); l=l[0]; var string_of_get='?'; woocs_array_of_get.currency=currency; if(Object.keys(woocs_array_of_get).length > 0){ jQuery.each(woocs_array_of_get, function (index, value){ string_of_get=string_of_get + "&" + index + "=" + value; }); } window.location=l + string_of_get; }, removeParameterFromUrl:function(url, parameter){ return url .replace(new RegExp('[?&]' + parameter + '=[^]*(#.*)?$'), '$1') .replace(new RegExp('([?&])' + parameter + '=[^&]*&'), '$1'); }} }); }).apply(this, [window.theme, jQuery]); function porto_init(){ (function($){ 'use strict'; if($.isFunction($.fn['themeAccordion'])){ $(function(){ $('.panel-group:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeAccordion(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeAccordionMenu'])){ $(function(){ $('.accordion-menu:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeAccordionMenu(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeAnimate'])){ $(function(){ $('[data-plugin-animate], [data-appear-animation]').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeAnimate(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeCarousel'])){ $(function(){ $('[data-plugin-carousel]:not(.manual), .porto-carousel:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeCarousel(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeChartCircular'])){ $(function(){ $('[data-plugin-chart-circular]:not(.manual), .circular-bar-chart:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeChartCircular(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeFitVideo'])){ $(function(){ $('.fit-video:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeFitVideo(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeFlickrZoom'])){ $(function(){ $('.wpb_flickr_widget:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeFlickrZoom(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeLightbox'])){ $(function(){ $('[data-plugin-lightbox]:not(.manual), .lightbox:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeLightbox(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeMasonry'])){ $(function(){ $('[data-plugin-masonry]:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeMasonry(opts); }); $('.posts-grid .grid:not(.manual)').each(function(){ $(this).themeMasonry({ itemSelector: '.post' }); }); $('.page-portfolios .portfolio-row:not(.manual)').each(function(){ var $parent=$(this).parent(), layoutMode='masonry', options, columnWidth='.portfolio:not(.w2)'; if($parent.hasClass('portfolios-grid')) layoutMode='fitRows'; options={ itemSelector: '.portfolio', layoutMode: layoutMode, callback: function(){ setTimeout(function(){ theme.FilterZoom.initialize($('.page-portfolios')); }, 400); }}; if(layoutMode=='masonry'){ if(!$parent.find('.portfolio:not(.w2)').length) columnWidth='.portfolio'; options=$.extend(true, {}, options, { masonry: { columnWidth: columnWidth }}); } $(this).themeMasonry(options); }); $('.page-members .member-row:not(.manual)').each(function(){ $(this).themeMasonry({ itemSelector: '.member', layoutMode: 'fitRows', callback: function(){ setTimeout(function(){ theme.FilterZoom.initialize($('.page-members')); }, 400); }}); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themePreviewImage'])){ $(function(){ $('.thumb-info-preview .thumb-info-image:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themePreviewImage(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeRefreshVideoSize'])){ $(function(){ $('.video-cover:not(.manual) .upb_video-bg').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeRefreshVideoSize(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeToggle'])){ $(function(){ $('section.toggle:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeToggle(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeParallax'])){ $(function(){ $('[data-plugin-parallax]:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeParallax(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeVcImageZoom'])){ $(function(){ $('.porto-vc-zoom:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeVcImageZoom(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeSticky'])){ $(function(){ $('[data-plugin-sticky]:not(.manual), .porto-sticky:not(.manual), .porto-sticky-nav:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeSticky(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeWooWidgetToggle'])){ $(function(){ $('.widget_product_categories, .widget_price_filter, .widget_layered_nav, .widget_layered_nav_filters, .widget_rating_filter').find('.widget-title').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeWooWidgetToggle(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeWooWidgetAccordion'])){ $(function(){ $('.widget_product_categories, .widget_price_filter, .widget_layered_nav, .widget_layered_nav_filters, .widget_rating_filter').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeWooWidgetAccordion(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['themeWooProductsSlider'])){ $(function(){ $('.products-slider:not(.manual)').each(function(){ var $this=$(this), opts; var pluginOptions=$this.data('plugin-options'); if(pluginOptions) opts=pluginOptions; $this.themeWooProductsSlider(opts); }); }); }}).apply(this, [jQuery]); (function($){ 'use strict'; if($.isFunction($.fn['tooltip'])){ $("[data-tooltip]:not(.manual), [data-toggle='tooltip']:not(.manual), .star-rating:not(.manual)").tooltip(); } $('[data-toggle="dropdown"]').dropdownHover(); $("[data-toggle='popover']").popover(); if($().waypoint){ $('.vc_progress_bar').each(function(){ var $tooltips=$(this).find('.progress-bar-tooltip'); $($tooltips.get(0)).waypoint(function(){ var delay=200; $tooltips.each(function(index){ var $tooltip=$(this); setTimeout(function(){ $tooltip.animate({ opacity: 1 }); }, 200 + delay * index); }); }, { offset: '85%' }); }); } $('.video-fixed').each(function(){ var $this=$(this), $video=$this.find('video, iframe'); if($video.length){ $(window).on('scroll', function(){ var offset=$(window).scrollTop() - $this.position().top + theme.adminBarHeight(); $video.css("cssText", "top: " + offset + "px !important;"); }); }}); $('.porto-popup-iframe').magnificPopup($.extend(true, {}, theme.mfpConfig, { disableOn: 700, type: 'iframe', mainClass: 'mfp-fade', removalDelay: 160, preloader: false, fixedContentPos: false })); $('.porto-popup-iframe').magnificPopup($.extend(true, {}, theme.mfpConfig, { disableOn: 700, type: 'iframe', mainClass: 'mfp-fade', removalDelay: 160, preloader: false, fixedContentPos: false })); $('.porto-popup-ajax').magnificPopup($.extend(true, {}, theme.mfpConfig, { type: 'ajax' })); $('.porto-popup-content').each(function(){ var animation=$(this).attr('data-animation'); $(this).magnificPopup($.extend(true, {}, theme.mfpConfig, { type: 'inline', fixedContentPos: false, fixedBgPos: true, overflowY: 'auto', closeBtnInside: true, preloader: false, midClick: true, removalDelay: 300, mainClass: animation })); }); $('.thumb-gallery-thumbs').each(function(){ var $thumbs=$(this), $detail=$thumbs.parent().find('.thumb-gallery-detail'), flag=false, duration=300; if($thumbs.data('initThumbs')) return; $detail.on('changed.owl.carousel', function(e){ if(!flag){ flag=true; var len=$detail.find('.owl-item').length, cloned=$detail.find('.cloned').length; if(len){ $thumbs.trigger('to.owl.carousel', [(e.item.index - cloned / 2 - 1) % len, duration, true]); } flag=false; }}); $thumbs.on('changed.owl.carousel', function(e){ if(!flag){ flag=true; var len=$thumbs.find('.owl-item').length, cloned=$thumbs.find('.cloned').length; if(len){ $detail.trigger('to.owl.carousel', [(e.item.index - cloned / 2) % len, duration, true]); } flag=false; }}).on('click', '.owl-item', function(){ if(!flag){ flag=true; var len=$thumbs.find('.owl-item').length, cloned=$thumbs.find('.cloned').length; if(len){ $detail.trigger('to.owl.carousel', [($(this).index() - cloned / 2) % len, duration, true]); } flag=false; }}).data('initThumbs', true); }); }).apply(this, [jQuery]); (function($){ 'use strict'; if($.cookie&&$.cookie('gridcookie')){ var $toggle=$('.gridlist-toggle'); if($toggle.get(0)){ var $parent=$toggle.parent().parent(); if($parent.find('ul.products').hasClass('grid')){ $.cookie('gridcookie', 'grid', { path: '/' }); }else if($parent.find('ul.products').hasClass('list')){ $.cookie('gridcookie', 'list', { path: '/' }); }else{ $parent.find('ul.products').addClass($.cookie('gridcookie')); }} } if($.cookie&&$.cookie('gridcookie')=='grid'){ $('.gridlist-toggle #grid').addClass('active'); $('.gridlist-toggle #list').removeClass('active'); } if($.cookie&&$.cookie('gridcookie')=='list'){ $('.gridlist-toggle #list').addClass('active'); $('.gridlist-toggle #grid').removeClass('active'); } if($.cookie&&$.cookie('gridcookie')==null){ var $toggle=$('.gridlist-toggle'); if($toggle.get(0)){ var $parent=$toggle.parent().parent(); $parent.find('ul.products').addClass('grid'); } $('.gridlist-toggle #grid').addClass('active'); if($.cookie) $.cookie('gridcookie', 'grid', { path: '/' }); }}).apply(this, [jQuery]); } (function(theme, $){ 'use strict'; $(document).ready(function(){ porto_init(); if(typeof theme.ScrollToTop!=='undefined'){ theme.ScrollToTop.initialize(); } if(typeof theme.MegaMenu!=='undefined'){ theme.MegaMenu.initialize(); } if(typeof theme.SidebarMenu!=='undefined'){ theme.SidebarMenu.initialize(); } if(typeof theme.SideNav!=='undefined'){ theme.SideNav.initialize(); } if(typeof theme.StickyHeader!=='undefined'){ theme.StickyHeader.initialize(); } if(typeof theme.Search!=='undefined'){ theme.Search.initialize(); } if(typeof theme.HashScroll!=='undefined'){ theme.HashScroll.initialize(); } if(typeof theme.PostsInfinite!=='undefined'){ theme.PostsInfinite.initialize(); } if(typeof theme.PortfolioAjaxPage!=='undefined'){ theme.PortfolioAjaxPage.initialize(); } if(typeof theme.PortfolioAjaxModal!=='undefined'){ theme.PortfolioAjaxModal.initialize(); } if(typeof theme.PortfoliosInfinite!=='undefined'){ theme.PortfoliosInfinite.initialize(); } if(typeof theme.PortfolioFilter!=='undefined'){ theme.PortfolioFilter.initialize(); } if(typeof theme.MemberAjaxPage!=='undefined'){ theme.MemberAjaxPage.initialize(); } if(typeof theme.MembersInfinite!=='undefined'){ theme.MembersInfinite.initialize(); } if(typeof theme.MemberFilter!=='undefined'){ theme.MemberFilter.initialize(); } if(typeof theme.FaqsInfinite!=='undefined'){ theme.FaqsInfinite.initialize(); } if(typeof theme.FaqFilter!=='undefined'){ theme.FaqFilter.initialize(); } if(typeof theme.FilterZoom!=='undefined'){ theme.FilterZoom.initialize($('.page-portfolios')); theme.FilterZoom.initialize($('.page-members')); theme.FilterZoom.initialize($('.blog-posts-related')); } if(typeof theme.SortFilter!=='undefined'){ theme.SortFilter.initialize(); } if(typeof theme.WooQtyField!=='undefined'){ theme.WooQtyField.initialize(); } if(typeof theme.WooQuickView!=='undefined'){ theme.WooQuickView.initialize(); } if(typeof theme.WooEvents!=='undefined'){ theme.WooEvents.initialize(); } $('.sidebar-toggle').click(function(e){ var $html=$('html'); if($html.hasClass('sidebar-opened')){ $html.removeClass('sidebar-opened'); $('.sidebar-overlay').removeClass('active'); }else{ $html.addClass('sidebar-opened'); $('.sidebar-overlay').addClass('active'); }}); $('.sidebar-overlay').click(function(){ $('html').removeClass('sidebar-opened'); $(this).removeClass('active'); }); $(window).on('resize', function(){ if($(window).width() > 991 - theme.getScrollbarWidth()){ $('.sidebar-overlay').click(); }}); if(!('ontouchstart' in document)){ $('.mini-cart').on('hide.bs.dropdown', function (){ return false; }); } if($.isFunction($.fn['matchHeight'])){ $('.tabs-simple .featured-box .box-content').matchHeight(); $('.porto-content-box .featured-box .box-content').matchHeight(); $('.vc_general.vc_cta3').matchHeight(); $('.match-height').matchHeight(); $('.fdm-section .fdm-item').matchHeight(); } if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ $('.share-whatsapp').css('display', 'inline-block'); } $(document).ajaxComplete(function(event, xhr, options){ if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ $('.share-whatsapp').css('display', 'inline-block'); }}); var ua=window.navigator.userAgent, ie12=ua.indexOf('Edge/') > 0; if(ie12) $('html').addClass('ie12'); if(!$('#yith-wcwl-popup-message').get(0)){ var message_div=$('') .attr('id', 'yith-wcwl-message'), popup_div=$('') .attr('id', 'yith-wcwl-popup-message') .html(message_div) .hide(); $('body').prepend(popup_div); } $(document).on('click', '.portfolios-lightbox a.portfolio-link', function(e){ $(this).find('.thumb-info-zoom').click(); return false; }); $(document).on('click', '.porto-portfolios .pagination:not(.load-more) a', function(e){ var $this=$(this), url=$this.attr('href'), shortcode_id=$this.closest('.porto-portfolios').find('.shortcode-id').val(), $container=$this.closest('.porto-portfolios' + shortcode_id); if(url){ e.preventDefault(); $container.addClass('porto-ajax-loading'); setTimeout(function(){ $('html, body').stop().animate({ scrollTop: $container.offset().top - theme.StickyHeader.sticky_height - theme.adminBarHeight() - theme.sticky_nav_height - 14 }, 600, 'easeOutQuad'); }, 200); $.ajax({ type:'post', url:url, success: function(response){ var $response_container=$('' + response + '').find('.porto-portfolios'+shortcode_id); $container.html($response_container.html()); theme.PortfolioAjaxPage.initialize($container.find('.page-portfolios')); theme.PortfolioAjaxModal.initialize($container.find('.page-portfolios')); porto_init(); theme.PortfolioFilter.initialize($container.find('.portfolio-filter')); }}).always(function(){ $container.removeClass('porto-ajax-loading'); }); return false; }}); $(document).on('click', '.porto-members .pagination a', function(e){ var $this=$(this), url=$this.attr('href'), shortcode_id=$this.closest('.porto-members').find('.shortcode-id').val(), $container=$this.closest('.porto-members' + shortcode_id); if(url){ e.preventDefault(); $container.addClass('porto-ajax-loading'); setTimeout(function(){ $('html, body').stop().animate({ scrollTop: $container.offset().top - theme.StickyHeader.sticky_height - theme.adminBarHeight() - theme.sticky_nav_height - 14 }, 600, 'easeOutQuad'); }, 200); $.ajax({ type:'post', url:url, success: function(response){ var $response_container=$('' + response + '').find('.porto-members'+shortcode_id); $container.html($response_container.html()); theme.MemberAjaxPage.initialize($container.find('.page-members')); porto_init(); theme.MemberFilter.initialize($container.find('.member-filter')); }}).always(function(){ $container.removeClass('porto-ajax-loading'); }); return false; }}); $(document).on('click', '.porto-faqs .pagination a', function(e){ var $this=$(this), url=$this.attr('href'), shortcode_id=$this.closest('.porto-faqs').find('.shortcode-id').val(), $container=$this.closest('.porto-faqs' + shortcode_id); if(url){ e.preventDefault(); $container.addClass('porto-ajax-loading'); setTimeout(function(){ $('html, body').stop().animate({ scrollTop: $container.offset().top - theme.StickyHeader.sticky_height - theme.adminBarHeight() - theme.sticky_nav_height - 14 }, 600, 'easeOutQuad'); }, 200); $.ajax({ type:'post', url:url, success: function(response){ var $response_container=$('' + response + '').find('.porto-faqs'+shortcode_id); $container.html($response_container.html()); porto_init(); theme.FaqFilter.initialize($container.find('.faq-filter')); }}).always(function(){ $container.removeClass('porto-ajax-loading'); }); return false; }}); $(document).on('shown.bs.collapse', '.collapse', function(){ var panel=$(this); theme.refreshVCContent(panel); }); $(document).on('shown.bs.tab', 'a[data-toggle="tab"]', function(e){ var panel=$($(e.target).attr('href')); theme.refreshVCContent(panel); }); $(document).on('tabactivate', '.woocommerce-tabs', function(e, ui){ var label=$(ui).attr('aria-controls'); var panel=$('[aria-labelledby="' + label + '"'); theme.refreshVCContent(panel); }); $(".porto-tooltip .tooltip-icon").click(function(){ if($(this).parent().children(".tooltip-popup").css("display")=="none"){ $(this).parent().children(".tooltip-popup").fadeIn(200); }else{ $(this).parent().children(".tooltip-popup").fadeOut(200); }}); $(".porto-tooltip .tooltip-close").click(function(){ $(this).parent().fadeOut(200); }); $(document).ready(function(){ $('body.single-portfolio .post-content > div:first-child > div:last-child').prepend($('body.single-portfolio .portfolio-info')); }); }); }).apply(this, [window.theme, jQuery]); (function (theme, $, undefined){ "use strict"; if(typeof theme.WooVariationForm!=='undefined'){ theme.WooVariationForm.initialize(); } if(typeof theme.WooProductImageSlider!=='undefined'){ theme.WooProductImageSlider.initialize(); } $(document).ready(function(){ $(window).bind('vc_reload', function(){ porto_init(); $('.type-product').addClass('product'); $('.type-post').addClass('post'); $('.type-portfolio').addClass('portfolio'); $('.type-member').addClass('member'); $('.type-block').addClass('block'); }); }); if(theme.rtl){ $(document).bind('vc-full-width-row', function(){ $('[data-vc-full-width="true"]').each(function(){ var $this=$(this), left=$this.css('left'); $this.css('right', left); $this.css('left', 'auto'); }); }); } var masonryContainer, masonryOptions; $(document).on('click', '.porto-portfolios .pagination.load-more a', function(e){ var $this=$(this), url=$this.attr('href'), shortcode_id=$this.closest('.porto-portfolios').find('.shortcode-id').val(), $container=$this.closest('.porto-portfolios' + shortcode_id), $loader=$container.find('.pagination-wrap.load-more .bounce-loader'), $btn=$container.find('.pagination.load-more a.next'); if(url){ e.preventDefault(); $btn.hide(); $loader.show(); $.ajax({ type:'post', url:url, success: function(response){ var $response_container=$('' + response + '').find('.porto-portfolios'+shortcode_id), $portfolio_thumbs=$response_container.find('.porto-portfolios-lighbox-thumbnails .owl-carousel').html(), $next_posts=$response_container.find('.portfolio-row'); $($next_posts).contents(':not(article)').remove(); $container.find('.pagination-wrap').replaceWith($response_container.find('.pagination-wrap')); $container.find('.porto-portfolios-lighbox-thumbnails .owl-carousel').append($portfolio_thumbs); $($next_posts.html()).insertAfter($container.find('article').last()); theme.PortfolioAjaxPage.initialize($('.page-portfolios')); theme.PortfolioAjaxModal.initialize($('.page-portfolios')); porto_init(); theme.PortfolioFilter.initialize($('.portfolio-filter')); var $parent=$container.find('.page-portfolios'), layoutMode='masonry', columnWidth='.portfolio:not(.w2)'; if($parent.hasClass('portfolios-grid')) layoutMode='fitRows'; masonryOptions={ itemSelector: '.portfolio', layoutMode: layoutMode, callback: function(){ setTimeout(function(){ theme.FilterZoom.initialize($('.page-portfolios')); }, 400); }}; if(layoutMode=='masonry'){ if(!$parent.find('.portfolio:not(.w2)').length) columnWidth='.portfolio'; masonryOptions=$.extend(true, {}, masonryOptions, { masonry: { columnWidth: columnWidth }}); } masonryContainer=$parent.find('.portfolio-row'); masonryContainer.themeMasonry(masonryOptions); $(masonryContainer).masonry(masonryOptions); setTimeout(function(){ $(masonryContainer).masonry('reloadItems'); $(masonryContainer).masonry('layout'); }, 100); $(window).on('resize', function(){ $(masonryContainer).masonry('reloadItems'); $(masonryContainer).masonry('layout'); }); }}).always(function(){ $loader.hide(); }); return false; }}); $(window).bind('resizeEnd', function(){ $(masonryContainer).masonry('reloadItems'); $(masonryContainer).masonry('layout'); }); $(window).resize(function(){ if(this.resizeTO) clearTimeout(this.resizeTO); this.resizeTO=setTimeout(function(){ $(this).trigger('resizeEnd'); }, 700); }); })(window.theme, jQuery);}catch(e){} try{(function($){$.fn.validationEngineLanguage=function(){};$.validationEngineLanguage={newLang:function(){$.validationEngineLanguage.allRules={"required":{"regex":"none","alertText":"* Необходимо заполнить","alertTextCheckboxMultiple":"* Вы должны выбрать вариант","alertTextCheckboxe":"* Необходимо отметить"},"requiredInFunction":{"func":function(field,rules,i,options){return(field.val()=="test")?true:false;},"alertText":"* Значением поля должно быть test"},"minSize":{"regex":"none","alertText":"* Минимум ","alertText2":" символа(ов)"},"maxSize":{"regex":"none","alertText":"* Максимум ","alertText2":" символа(ов)"},"groupRequired":{"regex":"none","alertText":"* Вы должны заполнить одно из следующих полей"},"min":{"regex":"none","alertText":"* Минимальное значение "},"max":{"regex":"none","alertText":"* Максимальное значение "},"past":{"regex":"none","alertText":"* Дата до "},"future":{"regex":"none","alertText":"* Дата от "},"maxCheckbox":{"regex":"none","alertText":"* Нельзя выбрать столько вариантов"},"minCheckbox":{"regex":"none","alertText":"* Пожалуйста, выберите ","alertText2":" опцию(ии)"},"equals":{"regex":"none","alertText":"* Поля не совпадают"},"creditCard":{"regex":"none","alertText":"* Неверный номер кредитной карты"},"phone":{"regex":/^([\+][0-9]{1,3}([ \.\-])?)?([\(][0-9]{1,6}[\)])?([0-9 \.\-]{1,32})(([A-Za-z \:]{1,11})?[0-9]{1,4}?)$/,"alertText":"* Неправильный формат телефона"},"email":{"regex":/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,"alertText":"* Неверный формат email"},"integer":{"regex":/^[\-\+]?\d+$/,"alertText":"* Не целое число"},"number":{"regex":/^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/,"alertText":"* Неправильное число с плавающей точкой"},"date":{"regex":/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/,"alertText":"* Неправильная дата (должно быть в ДД.MM.ГГГГ формате)"},"ipv4":{"regex":/^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,"alertText":"* Неправильный IP-адрес"},"url":{"regex":/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,"alertText":"* Неправильный URL"},"onlyNumberSp":{"regex":/^[0-9\ ]+$/,"alertText":"* Только числа"},"onlyLetterSp":{"regex":/^[a-zA-Z\u0400-\u04FF\ \']+$/,"alertText":"* Только буквы"},"onlyLetterNumber":{"regex":/^[0-9a-zA-Z\u0400-\u04FF]+$/,"alertText":"* Запрещены специальные символы"},"ajaxUserCall":{"url":"ajaxValidateFieldUser","extraData":"name=eric","alertText":"* Этот пользователь уже занят","alertTextLoad":"* Проверка, подождите..."},"ajaxNameCall":{"url":"ajaxValidateFieldName","alertText":"* Это имя уже занято","alertTextOk":"* Это имя доступно","alertTextLoad":"* Проверка, подождите..."},"validate2fields":{"alertText":"* Пожалуйста, введите HELLO"}};}};$.validationEngineLanguage.newLang();})(jQuery);}catch(e){} try{(function($){"use strict";var methods={init:function(options){var form=this;if(!form.data('jqv')||form.data('jqv')==null){options=methods._saveOptions(form,options);$(document).on("click",".formError",function(){$(this).fadeOut(150,function(){$(this).parent('.formErrorOuter').remove();$(this).remove();});});} return this;},attach:function(userOptions){var form=this;var options;if(userOptions) options=methods._saveOptions(form,userOptions);else options=form.data('jqv');options.validateAttribute=(form.find("[data-validation-engine*=validate]").length)?"data-validation-engine":"class";if(options.binded){form.on(options.validationEventTrigger,"["+options.validateAttribute+"*=validate]:not([type=checkbox]):not([type=radio]):not(.datepicker)",methods._onFieldEvent);form.on("click","["+options.validateAttribute+"*=validate][type=checkbox],["+options.validateAttribute+"*=validate][type=radio]",methods._onFieldEvent);form.on(options.validationEventTrigger,"["+options.validateAttribute+"*=validate][class*=datepicker]",{"delay":300},methods._onFieldEvent);} if(options.autoPositionUpdate){$(window).bind("resize",{"noAnimation":true,"formElem":form},methods.updatePromptsPosition);} form.on("click","a[data-validation-engine-skip], a[class*='validate-skip'], button[data-validation-engine-skip], button[class*='validate-skip'], input[data-validation-engine-skip], input[class*='validate-skip']",methods._submitButtonClick);form.removeData('jqv_submitButton');form.on("submit",methods._onSubmitEvent);return this;},detach:function(){var form=this;var options=form.data('jqv');form.find("["+options.validateAttribute+"*=validate]").not("[type=checkbox]").off(options.validationEventTrigger,methods._onFieldEvent);form.find("["+options.validateAttribute+"*=validate][type=checkbox],[class*=validate][type=radio]").off("click",methods._onFieldEvent);form.off("submit",methods.onAjaxFormComplete);form.off("submit",methods.onAjaxFormComplete);form.removeData('jqv');form.off("click","a[data-validation-engine-skip], a[class*='validate-skip'], button[data-validation-engine-skip], button[class*='validate-skip'], input[data-validation-engine-skip], input[class*='validate-skip']",methods._submitButtonClick);form.removeData('jqv_submitButton');if(options.autoPositionUpdate) $(window).unbind("resize",methods.updatePromptsPosition);return this;},validate:function(){var element=$(this);var valid=null;if(element.is("form")||element.hasClass("validationEngineContainer")){if(element.hasClass('validating')){return false;}else{element.addClass('validating');var options=element.data('jqv');var valid=methods._validateFields(this);setTimeout(function(){element.removeClass('validating');},100);if(valid&&options.onSuccess){options.onSuccess();}else if(!valid&&options.onFailure){options.onFailure();}}}else if(element.is('form')||element.hasClass('validationEngineContainer')){element.removeClass('validating');}else{var form=element.closest('form, .validationEngineContainer'),options=(form.data('jqv'))?form.data('jqv'):$.validationEngine.defaults,valid=methods._validateField(element,options);if(valid&&options.onFieldSuccess) options.onFieldSuccess();else if(options.onFieldFailure&&options.InvalidFields.length>0){options.onFieldFailure();}} if(options.onValidationComplete){return!!options.onValidationComplete(form,valid);} return valid;},updatePromptsPosition:function(event){if(event&&this==window){var form=event.data.formElem;var noAnimation=event.data.noAnimation;} else var form=$(this.closest('form, .validationEngineContainer'));var options=form.data('jqv');form.find('['+options.validateAttribute+'*=validate]').not(":disabled").each(function(){var field=$(this);if(options.prettySelect&&field.is(":hidden")) field=form.find("#"+options.usePrefix+field.attr('id')+options.useSuffix);var prompt=methods._getPrompt(field);var promptText=$(prompt).find(".formErrorContent").html();if(prompt) methods._updatePrompt(field,$(prompt),promptText,undefined,false,options,noAnimation);});return this;},showPrompt:function(promptText,type,promptPosition,showArrow){var form=this.closest('form, .validationEngineContainer');var options=form.data('jqv');if(!options) options=methods._saveOptions(this,options);if(promptPosition) options.promptPosition=promptPosition;options.showArrow=showArrow==true;methods._showPrompt(this,promptText,type,false,options);return this;},hide:function(){var form=$(this).closest('form, .validationEngineContainer');var options=form.data('jqv');var fadeDuration=(options&&options.fadeDuration)?options.fadeDuration:0.3;var closingtag;if($(this).is("form")||$(this).hasClass("validationEngineContainer")){closingtag="parentForm"+methods._getClassName($(this).attr("id"));}else{closingtag=methods._getClassName($(this).attr("id"))+"formError";} $('.'+closingtag).fadeTo(fadeDuration,0.3,function(){$(this).parent('.formErrorOuter').remove();$(this).remove();});return this;},hideAll:function(){var form=this;var options=form.data('jqv');var duration=options?options.fadeDuration:300;$('.formError').fadeTo(duration,300,function(){$(this).parent('.formErrorOuter').remove();$(this).remove();});return this;},_onFieldEvent:function(event){var field=$(this);var form=field.closest('form, .validationEngineContainer');var options=form.data('jqv');options.eventTrigger="field";window.setTimeout(function(){methods._validateField(field,options);if(options.InvalidFields.length==0&&options.onFieldSuccess){options.onFieldSuccess();}else if(options.InvalidFields.length>0&&options.onFieldFailure){options.onFieldFailure();}},(event.data)?event.data.delay:0);},_onSubmitEvent:function(){var form=$(this);var options=form.data('jqv');if(form.data("jqv_submitButton")){var submitButton=$("#"+form.data("jqv_submitButton"));if(submitButton){if(submitButton.length>0){if(submitButton.hasClass("validate-skip")||submitButton.attr("data-validation-engine-skip")=="true") return true;}}} options.eventTrigger="submit";var r=methods._validateFields(form);if(r&&options.ajaxFormValidation){methods._validateFormWithAjax(form,options);return false;} if(options.onValidationComplete){return!!options.onValidationComplete(form,r);} return r;},_checkAjaxStatus:function(options){var status=true;$.each(options.ajaxValidCache,function(key,value){if(!value){status=false;return false;}});return status;},_checkAjaxFieldStatus:function(fieldid,options){return options.ajaxValidCache[fieldid]==true;},_validateFields:function(form){var options=form.data('jqv');var errorFound=false;form.trigger("jqv.form.validating");var first_err=null;form.find('['+options.validateAttribute+'*=validate]').not(":disabled").each(function(){var field=$(this);var names=[];if($.inArray(field.attr('name'),names)<0){errorFound|=methods._validateField(field,options);if(errorFound&&first_err==null) if(field.is(":hidden")&&options.prettySelect) first_err=field=form.find("#"+options.usePrefix+methods._jqSelector(field.attr('id'))+options.useSuffix);else first_err=field;if(options.doNotShowAllErrosOnSubmit) return false;names.push(field.attr('name'));if(options.showOneMessage==true&&errorFound){return false;}}});form.trigger("jqv.form.result",[errorFound]);if(errorFound){if(options.scroll){var destination=first_err.offset().top;var fixleft=first_err.offset().left;var positionType=options.promptPosition;if(typeof(positionType)=='string'&&positionType.indexOf(":")!=-1) positionType=positionType.substring(0,positionType.indexOf(":"));if(positionType!="bottomRight"&&positionType!="bottomLeft"){var prompt_err=methods._getPrompt(first_err);if(prompt_err){destination=prompt_err.offset().top;}} if(options.scrollOffset){destination-=options.scrollOffset;} if(options.isOverflown){var overflowDIV=$(options.overflownDIV);if(!overflowDIV.length)return false;var scrollContainerScroll=overflowDIV.scrollTop();var scrollContainerPos=-parseInt(overflowDIV.offset().top);destination+=scrollContainerScroll+scrollContainerPos-5;var scrollContainer=$(options.overflownDIV+":not(:animated)");scrollContainer.animate({scrollTop:destination},1100,function(){if(options.focusFirstField)first_err.focus();});}else{$("html, body").animate({scrollTop:destination},1100,function(){if(options.focusFirstField)first_err.focus();});$("html, body").animate({scrollLeft:fixleft},1100)}}else if(options.focusFirstField) first_err.focus();return false;} return true;},_validateFormWithAjax:function(form,options){var data=form.serialize();var type=(options.ajaxFormValidationMethod)?options.ajaxFormValidationMethod:"GET";var url=(options.ajaxFormValidationURL)?options.ajaxFormValidationURL:form.attr("action");var dataType=(options.dataType)?options.dataType:"json";$.ajax({type:type,url:url,cache:false,dataType:dataType,data:data,form:form,methods:methods,options:options,beforeSend:function(){return options.onBeforeAjaxFormValidation(form,options);},error:function(data,transport){methods._ajaxError(data,transport);},success:function(json){if((dataType=="json")&&(json!==true)){var errorInForm=false;for(var i=0;i0){limitErrors=true;} var form=$(field.closest("form, .validationEngineContainer"));for(var i=0;i =options.maxErrorsPerField){if(!required){var have_required=$.inArray('required',rules);required=(have_required!=-1&&have_required>=i);} break;} var errorMsg=undefined;switch(rules[i]){case"required":required=true;errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._required);break;case"custom":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._custom);break;case"groupRequired":var classGroup="["+options.validateAttribute+"*="+rules[i+1]+"]";var firstOfGroup=form.find(classGroup).eq(0);if(firstOfGroup[0]!=field[0]){methods._validateField(firstOfGroup,options,skipAjaxValidation);options.showArrow=true;} errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._groupRequired);if(errorMsg)required=true;options.showArrow=false;break;case"ajax":errorMsg=methods._ajax(field,rules,i,options);if(errorMsg){promptType="load";} break;case"minSize":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._minSize);break;case"maxSize":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._maxSize);break;case"min":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._min);break;case"max":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._max);break;case"past":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._past);break;case"future":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._future);break;case"dateRange":var classGroup="["+options.validateAttribute+"*="+rules[i+1]+"]";options.firstOfGroup=form.find(classGroup).eq(0);options.secondOfGroup=form.find(classGroup).eq(1);if(options.firstOfGroup[0].value||options.secondOfGroup[0].value){errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._dateRange);} if(errorMsg)required=true;options.showArrow=false;break;case"dateTimeRange":var classGroup="["+options.validateAttribute+"*="+rules[i+1]+"]";options.firstOfGroup=form.find(classGroup).eq(0);options.secondOfGroup=form.find(classGroup).eq(1);if(options.firstOfGroup[0].value||options.secondOfGroup[0].value){errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._dateTimeRange);} if(errorMsg)required=true;options.showArrow=false;break;case"maxCheckbox":field=$(form.find("input[name='"+fieldName+"']"));errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._maxCheckbox);break;case"minCheckbox":field=$(form.find("input[name='"+fieldName+"']"));errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._minCheckbox);break;case"equals":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._equals);break;case"funcCall":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._funcCall);break;case"creditCard":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._creditCard);break;case"condRequired":errorMsg=methods._getErrorMessage(form,field,rules[i],rules,i,options,methods._condRequired);if(errorMsg!==undefined){required=true;} break;default:} var end_validation=false;if(typeof errorMsg=="object"){switch(errorMsg.status){case"_break":end_validation=true;break;case"_error":errorMsg=errorMsg.message;break;case"_error_no_prompt":return true;break;default:break;}} if(end_validation){break;} if(typeof errorMsg=='string'){promptText+=errorMsg+"
";options.isError=true;field_errors++;}} if(!required&&!(field.val())&&field.val().length<1)options.isError=false;var fieldType=field.prop("type");var positionType=field.data("promptPosition")||options.promptPosition;if((fieldType=="radio"||fieldType=="checkbox")&&form.find("input[name='"+fieldName+"']").size()>1){if(positionType==='inline'){field=$(form.find("input[name='"+fieldName+"'][type!=hidden]:last"));}else{field=$(form.find("input[name='"+fieldName+"'][type!=hidden]:first"));} options.showArrow=false;} if(field.is(":hidden")&&options.prettySelect){field=form.find("#"+options.usePrefix+methods._jqSelector(field.attr('id'))+options.useSuffix);} if(options.isError&&options.showPrompts){methods._showPrompt(field,promptText,promptType,false,options);}else{if(!isAjaxValidator)methods._closePrompt(field);} if(!isAjaxValidator){field.trigger("jqv.field.result",[field,options.isError,promptText]);} var errindex=$.inArray(field[0],options.InvalidFields);if(errindex==-1){if(options.isError) options.InvalidFields.push(field[0]);}else if(!options.isError){options.InvalidFields.splice(errindex,1);} methods._handleStatusCssClasses(field,options);if(options.isError&&options.onFieldFailure) options.onFieldFailure(field);if(!options.isError&&options.onFieldSuccess) options.onFieldSuccess(field);return options.isError;},_handleStatusCssClasses:function(field,options){if(options.addSuccessCssClassToField) field.removeClass(options.addSuccessCssClassToField);if(options.addFailureCssClassToField) field.removeClass(options.addFailureCssClassToField);if(options.addSuccessCssClassToField&&!options.isError) field.addClass(options.addSuccessCssClassToField);if(options.addFailureCssClassToField&&options.isError) field.addClass(options.addFailureCssClassToField);},_getErrorMessage:function(form,field,rule,rules,i,options,originalValidationMethod){var rule_index=jQuery.inArray(rule,rules);if(rule==="custom"||rule==="funcCall"){var custom_validation_type=rules[rule_index+1];rule=rule+"["+custom_validation_type+"]";delete(rules[rule_index]);} var alteredRule=rule;var element_classes=(field.attr("data-validation-engine"))?field.attr("data-validation-engine"):field.attr("class");var element_classes_array=element_classes.split(" ");var errorMsg;if(rule=="future"||rule=="past"||rule=="maxCheckbox"||rule=="minCheckbox"){errorMsg=originalValidationMethod(form,field,rules,i,options);}else{errorMsg=originalValidationMethod(field,rules,i,options);} if(errorMsg!=undefined){var custom_message=methods._getCustomErrorMessage($(field),element_classes_array,alteredRule,options);if(custom_message)errorMsg=custom_message;} return errorMsg;},_getCustomErrorMessage:function(field,classes,rule,options){var custom_message=false;var validityProp=methods._validityProp[rule];if(validityProp!=undefined){custom_message=field.attr("data-errormessage-"+validityProp);if(custom_message!=undefined) return custom_message;} custom_message=field.attr("data-errormessage");if(custom_message!=undefined) return custom_message;var id='#'+field.attr("id");if(typeof options.custom_error_messages[id]!="undefined"&&typeof options.custom_error_messages[id][rule]!="undefined"){custom_message=options.custom_error_messages[id][rule]['message'];}else if(classes.length>0){for(var i=0;i0;i++){var element_class="."+classes[i];if(typeof options.custom_error_messages[element_class]!="undefined"&&typeof options.custom_error_messages[element_class][rule]!="undefined"){custom_message=options.custom_error_messages[element_class][rule]['message'];break;}}} if(!custom_message&&typeof options.custom_error_messages[rule]!="undefined"&&typeof options.custom_error_messages[rule]['message']!="undefined"){custom_message=options.custom_error_messages[rule]['message'];} return custom_message;},_validityProp:{"required":"value-missing","custom":"custom-error","groupRequired":"value-missing","ajax":"custom-error","minSize":"range-underflow","maxSize":"range-overflow","min":"range-underflow","max":"range-overflow","past":"type-mismatch","future":"type-mismatch","dateRange":"type-mismatch","dateTimeRange":"type-mismatch","maxCheckbox":"range-overflow","minCheckbox":"range-underflow","equals":"pattern-mismatch","funcCall":"custom-error","creditCard":"pattern-mismatch","condRequired":"value-missing"},_required:function(field,rules,i,options,condRequired){switch(field.prop("type")){case"text":case"password":case"textarea":case"file":case"select-one":case"select-multiple":default:var field_val=$.trim(field.val());var dv_placeholder=$.trim(field.attr("data-validation-placeholder"));var placeholder=$.trim(field.attr("placeholder"));if((!field_val)||(dv_placeholder&&field_val==dv_placeholder)||(placeholder&&field_val==placeholder)){return options.allrules[rules[i]].alertText;} break;case"radio":case"checkbox":if(condRequired){if(!field.attr('checked')){return options.allrules[rules[i]].alertTextCheckboxMultiple;} break;} var form=field.closest("form, .validationEngineContainer");var name=field.attr("name");if(form.find("input[name='"+name+"']:checked").size()==0){if(form.find("input[name='"+name+"']:visible").size()==1) return options.allrules[rules[i]].alertTextCheckboxe;else return options.allrules[rules[i]].alertTextCheckboxMultiple;} break;}},_groupRequired:function(field,rules,i,options){var classGroup="["+options.validateAttribute+"*="+rules[i+1]+"]";var isValid=false;field.closest("form, .validationEngineContainer").find(classGroup).each(function(){if(!methods._required($(this),rules,i,options)){isValid=true;return false;}});if(!isValid){return options.allrules[rules[i]].alertText;}},_custom:function(field,rules,i,options){var customRule=rules[i+1];var rule=options.allrules[customRule];var fn;if(!rule){alert("jqv:custom rule not found - "+customRule);return;} if(rule["regex"]){var ex=rule.regex;if(!ex){alert("jqv:custom regex not found - "+customRule);return;} var pattern=new RegExp(ex);if(!pattern.test(field.val()))return options.allrules[customRule].alertText;}else if(rule["func"]){fn=rule["func"];if(typeof(fn)!=="function"){alert("jqv:custom parameter 'function' is no function - "+customRule);return;} if(!fn(field,rules,i,options)) return options.allrules[customRule].alertText;}else{alert("jqv:custom type not allowed "+customRule);return;}},_funcCall:function(field,rules,i,options){var functionName=rules[i+1];var fn;if(functionName.indexOf('.')>-1){var namespaces=functionName.split('.');var scope=window;while(namespaces.length){scope=scope[namespaces.shift()];} fn=scope;} else fn=window[functionName]||options.customFunctions[functionName];if(typeof(fn)=='function') return fn(field,rules,i,options);},_equals:function(field,rules,i,options){var equalsField=rules[i+1];if(field.val()!=$("#"+equalsField).val()) return options.allrules.equals.alertText;},_maxSize:function(field,rules,i,options){var max=rules[i+1];var len=field.val().length;if(len>max){var rule=options.allrules.maxSize;return rule.alertText+max+rule.alertText2;}},_minSize:function(field,rules,i,options){var min=rules[i+1];var len=field.val().length;if(len max){var rule=options.allrules.max;if(rule.alertText2)return rule.alertText+max+rule.alertText2;return rule.alertText+max;}},_past:function(form,field,rules,i,options){var p=rules[i+1];var fieldAlt=$(form.find("input[name='"+p.replace(/^#+/,'')+"']"));var pdate;if(p.toLowerCase()=="now"){pdate=new Date();}else if(undefined!=fieldAlt.val()){if(fieldAlt.is(":disabled")) return;pdate=methods._parseDate(fieldAlt.val());}else{pdate=methods._parseDate(p);} var vdate=methods._parseDate(field.val());if(vdate>pdate){var rule=options.allrules.past;if(rule.alertText2)return rule.alertText+methods._dateToString(pdate)+rule.alertText2;return rule.alertText+methods._dateToString(pdate);}},_future:function(form,field,rules,i,options){var p=rules[i+1];var fieldAlt=$(form.find("input[name='"+p.replace(/^#+/,'')+"']"));var pdate;if(p.toLowerCase()=="now"){pdate=new Date();}else if(undefined!=fieldAlt.val()){if(fieldAlt.is(":disabled")) return;pdate=methods._parseDate(fieldAlt.val());}else{pdate=methods._parseDate(p);} var vdate=methods._parseDate(field.val());if(vdate nbCheck){options.showArrow=false;if(options.allrules.maxCheckbox.alertText2) return options.allrules.maxCheckbox.alertText+" "+nbCheck+" "+options.allrules.maxCheckbox.alertText2;return options.allrules.maxCheckbox.alertText;}},_minCheckbox:function(form,field,rules,i,options){var nbCheck=rules[i+1];var groupname=field.attr("name");var groupSize=form.find("input[name='"+groupname+"']:checked").size();if(groupSize =14&&numDigits<=16&&parseInt(cardNumber)>0){var sum=0,i=numDigits-1,pos=1,digit,luhn=new String();do{digit=parseInt(cardNumber.charAt(i));luhn+=(pos++%2==0)?digit*2:digit;}while(--i>=0) for(i=0;i ');prompt.addClass(methods._getClassName(field.attr("id"))+"formError");prompt.addClass("parentForm"+methods._getClassName(field.closest('form, .validationEngineContainer').attr("id")));prompt.addClass("formError");switch(type){case"pass":prompt.addClass("greenPopup");break;case"load":prompt.addClass("blackPopup");break;default:} if(ajaxed) prompt.addClass("ajaxed");var promptContent=$(' ').addClass("formErrorContent").html(promptText).appendTo(prompt);var positionType=field.data("promptPosition")||options.promptPosition;if(options.showArrow){var arrow=$('').addClass("formErrorArrow");if(typeof(positionType)=='string'){var pos=positionType.indexOf(":");if(pos!=-1) positionType=positionType.substring(0,pos);} switch(positionType){case"bottomLeft":case"bottomRight":prompt.find(".formErrorContent").before(arrow);arrow.addClass("formErrorArrowBottom").html('');break;case"topLeft":case"topRight":arrow.html('');prompt.append(arrow);break;}} if(options.addPromptClass) prompt.addClass(options.addPromptClass);var requiredOverride=field.attr('data-required-class');if(requiredOverride!==undefined){prompt.addClass(requiredOverride);}else{if(options.prettySelect){if($('#'+field.attr('id')).next().is('select')){var prettyOverrideClass=$('#'+field.attr('id').substr(options.usePrefix.length).substring(options.useSuffix.length)).attr('data-required-class');if(prettyOverrideClass!==undefined){prompt.addClass(prettyOverrideClass);}}}} prompt.css({"opacity":0});if(positionType==='inline'){prompt.addClass("inline");if(typeof field.attr('data-prompt-target')!=='undefined'&&$('#'+field.attr('data-prompt-target')).length>0){prompt.appendTo($('#'+field.attr('data-prompt-target')));}else{field.after(prompt);}}else{field.before(prompt);} var pos=methods._calculatePosition(field,prompt,options);prompt.css({'position':positionType==='inline'?'relative':'absolute',"top":pos.callerTopPosition,"left":pos.callerleftPosition,"marginTop":pos.marginTopSize,"opacity":0}).data("callerField",field);if(options.autoHidePrompt){setTimeout(function(){prompt.animate({"opacity":0},function(){prompt.closest('.formErrorOuter').remove();prompt.remove();});},options.autoHideDelay);} return prompt.animate({"opacity":0.87});},_updatePrompt:function(field,prompt,promptText,type,ajaxed,options,noAnimation){if(prompt){if(typeof type!=="undefined"){if(type=="pass") prompt.addClass("greenPopup");else prompt.removeClass("greenPopup");if(type=="load") prompt.addClass("blackPopup");else prompt.removeClass("blackPopup");} if(ajaxed) prompt.addClass("ajaxed");else prompt.removeClass("ajaxed");prompt.find(".formErrorContent").html(promptText);var pos=methods._calculatePosition(field,prompt,options);var css={"top":pos.callerTopPosition,"left":pos.callerleftPosition,"marginTop":pos.marginTopSize};if(noAnimation) prompt.css(css);else prompt.animate(css);}},_closePrompt:function(field){var prompt=methods._getPrompt(field);if(prompt) prompt.fadeTo("fast",0,function(){prompt.parent('.formErrorOuter').remove();prompt.remove();});},closePrompt:function(field){return methods._closePrompt(field);},_getPrompt:function(field){var formId=$(field).closest('form, .validationEngineContainer').attr('id');var className=methods._getClassName(field.attr("id"))+"formError";var match=$("."+methods._escapeExpression(className)+'.parentForm'+formId)[0];if(match) return $(match);},_escapeExpression:function(selector){return selector.replace(/([#;&,\.\+\*\~':"\!\^$\[\]\(\)=>\|])/g,"\\$1");},isRTL:function(field){var $document=$(document);var $body=$('body');var rtl=(field&&field.hasClass('rtl'))||(field&&(field.attr('dir')||'').toLowerCase()==='rtl')||$document.hasClass('rtl')||($document.attr('dir')||'').toLowerCase()==='rtl'||$body.hasClass('rtl')||($body.attr('dir')||'').toLowerCase()==='rtl';return Boolean(rtl);},_calculatePosition:function(field,promptElmt,options){var promptTopPosition,promptleftPosition,marginTopSize;var fieldWidth=field.width();var fieldLeft=field.position().left;var fieldTop=field.position().top;var fieldHeight=field.height();var promptHeight=promptElmt.height();promptTopPosition=promptleftPosition=0;marginTopSize=-promptHeight;var positionType=field.data("promptPosition")||options.promptPosition;var shift1="";var shift2="";var shiftX=0;var shiftY=0;if(typeof(positionType)=='string'){if(positionType.indexOf(":")!=-1){shift1=positionType.substring(positionType.indexOf(":")+1);positionType=positionType.substring(0,positionType.indexOf(":"));if(shift1.indexOf(",")!=-1){shift2=shift1.substring(shift1.indexOf(",")+1);shift1=shift1.substring(0,shift1.indexOf(","));shiftY=parseInt(shift2);if(isNaN(shiftY))shiftY=0;};shiftX=parseInt(shift1);if(isNaN(shift1))shift1=0;};};switch(positionType){default:case"topRight":promptleftPosition+=fieldLeft+fieldWidth-30;promptTopPosition+=fieldTop;break;case"topLeft":promptTopPosition+=fieldTop;promptleftPosition+=fieldLeft;break;case"centerRight":promptTopPosition=fieldTop+4;marginTopSize=0;promptleftPosition=fieldLeft+field.outerWidth(true)+5;break;case"centerLeft":promptleftPosition=fieldLeft-(promptElmt.width()+2);promptTopPosition=fieldTop+4;marginTopSize=0;break;case"bottomLeft":promptTopPosition=fieldTop+field.height()+5;marginTopSize=0;promptleftPosition=fieldLeft;break;case"bottomRight":promptleftPosition=fieldLeft+fieldWidth-30;promptTopPosition=fieldTop+field.height()+5;marginTopSize=0;break;case"inline":promptleftPosition=0;promptTopPosition=0;marginTopSize=0;};promptleftPosition+=shiftX;promptTopPosition+=shiftY;return{"callerTopPosition":promptTopPosition+"px","callerleftPosition":promptleftPosition+"px","marginTopSize":marginTopSize+"px"};},_saveOptions:function(form,options){if($.validationEngineLanguage) var allRules=$.validationEngineLanguage.allRules;else $.error("jQuery.validationEngine rules are not loaded, plz add localization files to the page");$.validationEngine.defaults.allrules=allRules;var userOptions=$.extend(true,{},$.validationEngine.defaults,options);form.data('jqv',userOptions);return userOptions;},_getClassName:function(className){if(className) return className.replace(/:/g,"_").replace(/\./g,"_");},_jqSelector:function(str){return str.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,'\\$1');},_condRequired:function(field,rules,i,options){var idx,dependingField;for(idx=(i+1);idx"),t("#"+l).fadeOut(),t.ajax({type:"post",url:wysijaAJAX.ajaxurl,data:wysijaAJAX,success:function(i){t("#msg-"+l).html(''),i.result||t("#"+l).fadeIn(),t.each(i.msgs,function(i,a){t("#msg-"+l+" .allmsgs ."+i+" ul").length||t("#msg-"+l+" .allmsgs").append('e;e++){if(parseInt(a[e])>parseInt(n[e]))return 1;if(parseInt(a[e]) n.length?1:a.length '),t.each(a,function(a,n){t("#msg-"+l+" .allmsgs ."+i+" ul").append(""+n+" ")})})},error:function(i,a,n){t("#msg-"+l).html(''),t("#msg-"+l+" .allmsgs").html('")},dataType:"jsonp"})}return!1}),t(function(){var i="centerRight";wysijaAJAX.is_rtl&&(i="centerLeft"),t("form.widget_wysija").validationEngine("attach",{promptPosition:i,scroll:!1}),t("form.widget_wysija").bind("jqv.form.validating",function(){t(this).find("input[placeholder]").each(function(){t(this).val()===t(this).attr("placeholder")&&t(this).val("")})}),t("form.widget_wysija").find("input[placeholder]").each(function(){""===t(this).val()&&t(this).val(t(this).attr("placeholder"))}),t("form.widget_wysija").bind("jqv.form.validating",function(){t(this).find("input.defaultlabels").each(function(){t(this).val()===t(this).attr("title")&&t(this).val("")})}),t("form.widget_wysija").find("input.defaultlabels").each(function(){""===t(this).val()&&t(this).val(t(this).attr("title"))})})});}catch(e){} try{window.bsfmodernizr=function(a,b,c){function d(a){s.cssText=a}function e(a,b){return typeof a===b}function f(a,b){return!!~(""+a).indexOf(b)}function g(a,b){for(var d in a){var e=a[d];if(!f(e,"-")&&s[e]!==c)return"pfx"!=b||e}return!1}function h(a,b,d){for(var f in a){var g=b[a[f]];if(g!==c)return d===!1?a[f]:e(g,"function")?g.bind(d||b):g}return!1}function i(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),f=(a+" "+u.join(d+" ")+d).split(" ");return e(b,"string")||e(b,"undefined")?g(f,b):(f=(a+" "+v.join(d+" ")+d).split(" "),h(f,b,c))}var j,k,l,m="2.7.1",n={},o=!0,p=b.documentElement,q="bsfmodernizr",r=b.createElement(q),s=r.style,t=({}.toString,"Webkit Moz O ms"),u=t.split(" "),v=t.toLowerCase().split(" "),w={},x=[],y=x.slice,z={}.hasOwnProperty;l=e(z,"undefined")||e(z.call,"undefined")?function(a,b){return b in a&&e(a.constructor.prototype[b],"undefined")}:function(a,b){return z.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=y.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(y.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(y.call(arguments)))};return d}),w.csstransitions=function(){return i("transition")};for(var A in w)l(w,A)&&(k=A.toLowerCase(),n[k]=w[A](),x.push((n[k]?"":"no-")+k));return n.addTest=function(a,b){if("object"==typeof a)for(var d in a)l(a,d)&&n.addTest(d,a[d]);else{if(a=a.toLowerCase(),n[a]!==c)return n;b="function"==typeof b?b():b,"undefined"!=typeof o&&o&&(p.className+=" "+(b?"":"no-")+a),n[a]=b}return n},d(""),r=j=null,function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=s.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=r[a[p]];return b||(b={},q++,a[p]=q,r[q]=b),b}function f(a,c,d){if(c||(c=b),k)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():o.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||n.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),k)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;g",j="hidden"in a,k=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){j=!0,k=!0}}();var s={elements:m.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:l,shivCSS:m.shivCSS!==!1,supportsUnknownElements:k,shivMethods:m.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=s,i(b)}(this,b),n._version=m,n._domPrefixes=v,n._cssomPrefixes=u,n.testProp=function(a){return g([a])},n.testAllProps=i,n.prefixed=function(a,b,c){return b?i(a,b,c):i(a,"pfx")},p.className=p.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(o?" js "+x.join(" "):""),n}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==q.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=r.shift();s=1,a?a.t?o(function(){("c"==a.t?m.injectCss:m.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):s=0}function i(a,c,d,e,f,i,j){function k(b){if(!n&&g(l.readyState)&&(t.r=n=1,!s&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&o(function(){v.removeChild(l)},50);for(var d in A[c])A[c].hasOwnProperty(d)&&A[c][d].onload()}}var j=j||m.errorTimeout,l=b.createElement(a),n=0,q=0,t={t:d,s:c,e:f,a:i,x:j};1===A[c]&&(q=1,A[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,q)},r.splice(e,0,t),"img"!=a&&(q||2===A[c]?(v.insertBefore(l,u?null:p),o(k,j)):A[c].push(l))}function j(a,b,c,d,f){return s=0,b=b||"j",e(a)?i("c"==b?x:w,a,b,this.i++,c,d,f):(r.splice(this.i++,0,a),1==r.length&&h()),this}function k(){var a=m;return a.loader={load:j,i:0},a}var l,m,n=b.documentElement,o=a.setTimeout,p=b.getElementsByTagName("script")[0],q={}.toString,r=[],s=0,t="MozAppearance"in n.style,u=t&&!!b.createRange().compareNode,v=u?n:p.parentNode,n=a.opera&&"[object Opera]"==q.call(a.opera),n=!!b.attachEvent&&!n,w=t?"object":n?"script":"img",x=n?"script":w,y=Array.isArray||function(a){return"[object Array]"==q.call(a)},z=[],A={},B={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}};m=function(a){function b(a){var b,c,d,a=a.split("!"),e=z.length,f=a.pop(),g=a.length,f={url:f,origUrl:f,prefixes:a};for(c=0;c
- Oops! There is a problem with this form:
- textStatus:'+a+"
- errorThrown:"+n+"
- responseText:"+i.responseText+"
",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=s.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=r[a[p]];return b||(b={},q++,a[p]=q,r[q]=b),b}function f(a,c,d){if(c||(c=b),k)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():o.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||n.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),k)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;g",j="hidden"in a,k=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){j=!0,k=!0}}();var s={elements:m.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:l,shivCSS:m.shivCSS!==!1,supportsUnknownElements:k,shivMethods:m.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=s,i(b)}(this,b),n._version=m,n._domPrefixes=v,n._cssomPrefixes=u,n.testProp=function(a){return g([a])},n.testAllProps=i,n.prefixed=function(a,b,c){return b?i(a,b,c):i(a,"pfx")},p.className=p.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(o?" js "+x.join(" "):""),n}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==q.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=r.shift();s=1,a?a.t?o(function(){("c"==a.t?m.injectCss:m.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):s=0}function i(a,c,d,e,f,i,j){function k(b){if(!n&&g(l.readyState)&&(t.r=n=1,!s&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&o(function(){v.removeChild(l)},50);for(var d in A[c])A[c].hasOwnProperty(d)&&A[c][d].onload()}}var j=j||m.errorTimeout,l=b.createElement(a),n=0,q=0,t={t:d,s:c,e:f,a:i,x:j};1===A[c]&&(q=1,A[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,q)},r.splice(e,0,t),"img"!=a&&(q||2===A[c]?(v.insertBefore(l,u?null:p),o(k,j)):A[c].push(l))}function j(a,b,c,d,f){return s=0,b=b||"j",e(a)?i("c"==b?x:w,a,b,this.i++,c,d,f):(r.splice(this.i++,0,a),1==r.length&&h()),this}function k(){var a=m;return a.loader={load:j,i:0},a}var l,m,n=b.documentElement,o=a.setTimeout,p=b.getElementsByTagName("script")[0],q={}.toString,r=[],s=0,t="MozAppearance"in n.style,u=t&&!!b.createRange().compareNode,v=u?n:p.parentNode,n=a.opera&&"[object Opera]"==q.call(a.opera),n=!!b.attachEvent&&!n,w=t?"object":n?"script":"img",x=n?"script":w,y=Array.isArray||function(a){return"[object Array]"==q.call(a)},z=[],A={},B={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}};m=function(a){function b(a){var b,c,d,a=a.split("!"),e=z.length,f=a.pop(),g=a.length,f={url:f,origUrl:f,prefixes:a};for(c=0;c c;c++)b+=a[c],2>c&&(b+="/");return g=b,this},api:function(a,c){if(!this.element||!a)return!1;var e=this.element,f=""!==e.id?e.id:null,g=c&&c.constructor&&c.call&&c.apply?null:c,h=c&&c.constructor&&c.call&&c.apply?c:null;return h&&d(a,h,f),b(a,g,e),this},addEvent:function(a,c){if(!this.element)return!1;var e=this.element,g=""!==e.id?e.id:null;return d(a,c,g),"ready"!=a?b("addEventListener",a,e):"ready"==a&&f&&c.call(null,g),this},removeEvent:function(a){if(!this.element)return!1;var c,d=this.element;a:{if((c=""!==d.id?d.id:null)&&e[c]){if(!e[c][a]){c=!1;break a}e[c][a]=null}else{if(!e[a]){c=!1;break a}e[a]=null}c=!0}"ready"!=a&&c&&b("removeEventListener",a,d)}},a.fn.init.prototype=a.fn,window.addEventListener?window.addEventListener("message",c,!1):window.attachEvent("onmessage",c),window.Froogaloop=window.$f=a}();!function(a){var b,c,d="0.4.2",e="hasOwnProperty",f=/[\.\/]/,g="*",h=function(){},i=function(a,b){return a-b},j={n:{}},k=function(a,d){a=String(a);var e,f=c,g=Array.prototype.slice.call(arguments,2),h=k.listeners(a),j=0,l=[],m={},n=[],o=b;b=a,c=0;for(var p=0,q=h.length;q>p;p++)"zIndex"in h[p]&&(l.push(h[p].zIndex),h[p].zIndex<0&&(m[h[p].zIndex]=h[p]));for(l.sort(i);l[j]<0;)if(e=m[l[j++]],n.push(e.apply(d,g)),c)return c=f,n;for(p=0;q>p;p++)if(e=h[p],"zIndex"in e)if(e.zIndex==l[j]){if(n.push(e.apply(d,g)),c)break;do if(j++,e=m[l[j]],e&&n.push(e.apply(d,g)),c)break;while(e)}else m[e.zIndex]=e;else if(n.push(e.apply(d,g)),c)break;return c=f,b=o,n.length?n:null};k._events=j,k.listeners=function(a){var b,c,d,e,h,i,k,l,m=a.split(f),n=j,o=[n],p=[];for(e=0,h=m.length;h>e;e++){for(l=[],i=0,k=o.length;k>i;i++)for(n=o[i].n,c=[n[m[e]],n[g]],d=2;d--;)b=c[d],b&&(l.push(b),p=p.concat(b.f||[]));o=l}return p},k.on=function(a,b){if(a=String(a),"function"!=typeof b)return function(){};for(var c=a.split(f),d=j,e=0,g=c.length;g>e;e++)d=d.n,d=d.hasOwnProperty(c[e])&&d[c[e]]||(d[c[e]]={n:{}});for(d.f=d.f||[],e=0,g=d.f.length;g>e;e++)if(d.f[e]==b)return h;return d.f.push(b),function(a){+a==+a&&(b.zIndex=+a)}},k.f=function(a){var b=[].slice.call(arguments,1);return function(){k.apply(null,[a,null].concat(b).concat([].slice.call(arguments,0)))}},k.stop=function(){c=1},k.nt=function(a){return a?new RegExp("(?:\\.|\\/|^)"+a+"(?:\\.|\\/|$)").test(b):b},k.nts=function(){return b.split(f)},k.off=k.unbind=function(a,b){if(!a)return void(k._events=j={n:{}});var c,d,h,i,l,m,n,o=a.split(f),p=[j];for(i=0,l=o.length;l>i;i++)for(m=0;m i;i++)for(c=p[i];c.n;){if(b){if(c.f){for(m=0,n=c.f.length;n>m;m++)if(c.f[m]==b){c.f.splice(m,1);break}!c.f.length&&delete c.f}for(d in c.n)if(c.n[e](d)&&c.n[d].f){var q=c.n[d].f;for(m=0,n=q.length;n>m;m++)if(q[m]==b){q.splice(m,1);break}!q.length&&delete c.n[d].f}}else{delete c.f;for(d in c.n)c.n[e](d)&&c.n[d].f&&delete c.n[d].f}c=c.n}},k.once=function(a,b){var c=function(){return k.unbind(a,c),b.apply(this,arguments)};return k.on(a,c)},k.version=d,k.toString=function(){return"You are running Eve "+d},"undefined"!=typeof module&&module.exports?module.exports=k:"undefined"!=typeof define?define("eve",[],function(){return k}):a.eve=k}(this),function(a,b){"function"==typeof define&&define.amd?define(["eve"],function(c){return b(a,c)}):b(a,a.eve)}(this,function(a,b){var c=function(b){var c={},d=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||function(a){setTimeout(a,16)},e=Array.isArray||function(a){return a instanceof Array||"[object Array]"==Object.prototype.toString.call(a)},f=0,g="M"+(+new Date).toString(36),h=function(){return g+(f++).toString(36)},i=Date.now||function(){return+new Date},j=function(a){var b=this;if(null==a)return b.s;var c=b.s-a;b.b+=b.dur*c,b.B+=b.dur*c,b.s=a},k=function(a){var b=this;return null==a?b.spd:void(b.spd=a)},l=function(a){var b=this;return null==a?b.dur:(b.s=b.s*a/b.dur,void(b.dur=a))},m=function(){var a=this;delete c[a.id],b("mina.stop."+a.id,a)},n=function(){var a=this;a.pdif||(delete c[a.id],a.pdif=a.get()-a.b)},o=function(){var a=this;a.pdif&&(a.b=a.get()-a.pdif,delete a.pdif,c[a.id]=a)},p=function(){var a=0;for(var f in c)if(c.hasOwnProperty(f)){var g,h=c[f],i=h.get();if(a++,h.s=(i-h.b)/(h.dur/h.spd),h.s>=1&&(delete c[f],h.s=1,a--,function(a){setTimeout(function(){b("mina.finish."+a.id,a)})}(h)),e(h.start)){g=[];for(var j=0,k=h.start.length;k>j;j++)g[j]=+h.start[j]+(h.end[j]-h.start[j])*h.easing(h.s)}else g=+h.start+(h.end-h.start)*h.easing(h.s);h.set(g)}a&&d(p)},q=function(a,b,e,f,g,i,r){var s={id:h(),start:a,end:b,b:e,s:0,dur:f-e,spd:1,get:g,set:i,easing:r||q.linear,status:j,speed:k,duration:l,stop:m,pause:n,resume:o};c[s.id]=s;var t,u=0;for(t in c)if(c.hasOwnProperty(t)&&(u++,2==u))break;return 1==u&&d(p),s};return q.time=i,q.getById=function(a){return c[a]||null},q.linear=function(a){return a},q.easeout=function(a){return Math.pow(a,1.7)},q.easein=function(a){return Math.pow(a,.48)},q.easeinout=function(a){if(1==a)return 1;if(0==a)return 0;var b=.48-a/1.04,c=Math.sqrt(.1734+b*b),d=c-b,e=Math.pow(Math.abs(d),1/3)*(0>d?-1:1),f=-c-b,g=Math.pow(Math.abs(f),1/3)*(0>f?-1:1),h=e+g+.5;return 3*(1-h)*h*h+h*h*h},q.backin=function(a){if(1==a)return 1;var b=1.70158;return a*a*((b+1)*a-b)},q.backout=function(a){if(0==a)return 0;a-=1;var b=1.70158;return a*a*((b+1)*a+b)+1},q.elastic=function(a){return a==!!a?a:Math.pow(2,-10*a)*Math.sin(2*(a-.075)*Math.PI/.3)+1},q.bounce=function(a){var b,c=7.5625,d=2.75;return 1/d>a?b=c*a*a:2/d>a?(a-=1.5/d,b=c*a*a+.75):2.5/d>a?(a-=2.25/d,b=c*a*a+.9375):(a-=2.625/d,b=c*a*a+.984375),b},a.mina=q,q}("undefined"==typeof b?function(){}:b),d=function(){function d(a,b){if(a){if(a.tagName)return z(a);if(a instanceof u)return a;if(null==b)return a=I.doc.querySelector(a),z(a)}return a=null==a?"100%":a,b=null==b?"100%":b,new y(a,b)}function e(a,b){if(b){if("string"==typeof a&&(a=e(a)),"string"==typeof b)return"xlink:"==b.substring(0,6)?a.getAttributeNS(fa,b.substring(6)):"xml:"==b.substring(0,4)?a.getAttributeNS(ga,b.substring(4)):a.getAttribute(b);for(var c in b)if(b[J](c)){var d=K(b[c]);d?"xlink:"==c.substring(0,6)?a.setAttributeNS(fa,c.substring(6),d):"xml:"==c.substring(0,4)?a.setAttributeNS(ga,c.substring(4),d):a.setAttribute(c,d):a.removeAttribute(c)}}else a=I.doc.createElementNS(ga,a);return a}function f(a,b){return b=K.prototype.toLowerCase.call(b),"finite"==b?isFinite(a):!("array"!=b||!(a instanceof Array||Array.isArray&&Array.isArray(a)))||("null"==b&&null===a||b==typeof a&&null!==a||"object"==b&&a===Object(a)||U.call(a).slice(8,-1).toLowerCase()==b)}function h(a){if("function"==typeof a||Object(a)!==a)return a;var b=new a.constructor;for(var c in a)a[J](c)&&(b[c]=h(a[c]));return b}function i(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return a.push(a.splice(c,1)[0])}function j(a,b,c){function d(){var e=Array.prototype.slice.call(arguments,0),f=e.join("␀"),g=d.cache=d.cache||{},h=d.count=d.count||[];return g[J](f)?(i(h,f),c?c(g[f]):g[f]):(h.length>=1e3&&delete g[h.shift()],h.push(f),g[f]=a.apply(b,e),c?c(g[f]):g[f])}return d}function k(a,b,c,d,e,f){if(null==e){var g=a-c,h=b-d;return g||h?(180+180*N.atan2(-h,-g)/R+360)%360:0}return k(a,b,e,f)-k(c,d,e,f)}function l(a){return a%360*R/180}function m(a){return 180*a/R%360}function n(a,b,c,d,e,f){return null==b&&"[object SVGMatrix]"==U.call(a)?(this.a=a.a,this.b=a.b,this.c=a.c,this.d=a.d,this.e=a.e,void(this.f=a.f)):void(null!=a?(this.a=+a,this.b=+b,this.c=+c,this.d=+d,this.e=+e,this.f=+f):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0))}function o(a){var b=[];return a=a.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(a,c,d){return d=d.split(/\s*,\s*|\s+/),"rotate"==c&&1==d.length&&d.push(0,0),"scale"==c&&(2==d.length&&d.push(0,0),1==d.length&&d.push(d[0],0,0)),"skewX"==c?b.push(["m",1,0,N.tan(l(d[0])),1,0,0]):"skewY"==c?b.push(["m",1,N.tan(l(d[0])),0,1,0,0]):b.push([c.charAt(0)].concat(d)),a}),b}function p(a,b){var c=qa(a),d=new n;if(c)for(var e=0,f=c.length;f>e;e++){var g,h,i,j,k,l=c[e],m=l.length,o=K(l[0]).toLowerCase(),p=l[0]!=o,q=p?d.invert():0;"t"==o&&2==m?d.translate(l[1],0):"t"==o&&3==m?p?(g=q.x(0,0),h=q.y(0,0),i=q.x(l[1],l[2]),j=q.y(l[1],l[2]),d.translate(i-g,j-h)):d.translate(l[1],l[2]):"r"==o?2==m?(k=k||b,d.rotate(l[1],k.x+k.width/2,k.y+k.height/2)):4==m&&(p?(i=q.x(l[2],l[3]),j=q.y(l[2],l[3]),d.rotate(l[1],i,j)):d.rotate(l[1],l[2],l[3])):"s"==o?2==m||3==m?(k=k||b,d.scale(l[1],l[m-1],k.x+k.width/2,k.y+k.height/2)):4==m?p?(i=q.x(l[2],l[3]),j=q.y(l[2],l[3]),d.scale(l[1],l[1],i,j)):d.scale(l[1],l[1],l[2],l[3]):5==m&&(p?(i=q.x(l[3],l[4]),j=q.y(l[3],l[4]),d.scale(l[1],l[2],i,j)):d.scale(l[1],l[2],l[3],l[4])):"m"==o&&7==m&&d.add(l[1],l[2],l[3],l[4],l[5],l[6])}return d}function q(a,b){if(null==b){var c=!0;if(b="linearGradient"==a.type||"radialGradient"==a.type?a.node.getAttribute("gradientTransform"):"pattern"==a.type?a.node.getAttribute("patternTransform"):a.node.getAttribute("transform"),!b)return new n;b=o(b)}else b=d._.rgTransform.test(b)?K(b).replace(/\.{3}|\u2026/g,a._.transform||S):o(b),f(b,"array")&&(b=d.path?d.path.toString.call(b):K(b)),a._.transform=b;var e=p(b,a.getBBox(1));return c?e:void(a.matrix=e)}function r(a){var b=d._.someDefs;if(b&&ra(b.ownerDocument.documentElement,b))return b;var c=a.node.ownerSVGElement&&z(a.node.ownerSVGElement)||a.node.parentNode&&z(a.node.parentNode)||d.select("svg")||d(0,0),e=c.select("defs"),f=null!=e&&e.node;return f||(f=x("defs",c.node).node),d._.someDefs=f,f}function s(a,b,c){function d(a){return null==a?S:a==+a?a:(e(j,{width:a}),j.getBBox().width)}function f(a){return null==a?S:a==+a?a:(e(j,{height:a}),j.getBBox().height)}function g(d,e){null==b?i[d]=e(a.attr(d)):d==b&&(i=e(null==c?a.attr(d):c))}var h=r(a),i={},j=h.querySelector(".svg---mgr");switch(j||(j=e("rect"),e(j,{width:10,height:10,class:"svg---mgr"}),h.appendChild(j)),a.type){case"rect":g("rx",d),g("ry",f);case"image":g("width",d),g("height",f);case"text":g("x",d),g("y",f);break;case"circle":g("cx",d),g("cy",f),g("r",d);break;case"ellipse":g("cx",d),g("cy",f),g("rx",d),g("ry",f);break;case"line":g("x1",d),g("x2",d),g("y1",f),g("y2",f);break;case"marker":g("refX",d),g("markerWidth",d),g("refY",f),g("markerHeight",f);break;case"radialGradient":g("fx",d),g("fy",f);break;case"tspan":g("dx",d),g("dy",f);break;default:g(b,d)}return i}function t(a){f(a,"array")||(a=Array.prototype.slice.call(arguments,0));for(var b=0,c=0,d=this.node;this[b];)delete this[b++];for(b=0;b c;c++)if(b=b||a[c])return b}function w(a){this.node=a}function x(a,b){var c=e(a);b.appendChild(c);var d=z(c);return d.type=a,d}function y(a,b){var c,d,f,g=y.prototype;if(a&&"svg"==a.tagName){if(a.snap in ha)return ha[a.snap];c=new u(a),d=a.getElementsByTagName("desc")[0],f=a.getElementsByTagName("defs")[0],d||(d=e("desc"),d.appendChild(I.doc.createTextNode("Created with Snap")),c.node.appendChild(d)),f||(f=e("defs"),c.node.appendChild(f)),c.defs=f;for(var h in g)g[J](h)&&(c[h]=g[h]);c.paper=c.root=c}else c=x("svg",I.doc.body),e(c.node,{height:b,version:1.1,width:a,xmlns:ga});return c}function z(a){return a?a instanceof u||a instanceof w?a:"svg"==a.tagName?new y(a):new u(a):a}function A(){return this.selectAll("stop")}function B(a,b){var c=e("stop"),f={offset:+b+"%"};return a=d.color(a),f["stop-color"]=a.hex,a.opacity<1&&(f["stop-opacity"]=a.opacity),e(c,f),this.node.appendChild(c),this}function C(){if("linearGradient"==this.type){var a=e(this.node,"x1")||0,b=e(this.node,"x2")||1,c=e(this.node,"y1")||0,f=e(this.node,"y2")||0;return d._.box(a,c,N.abs(b-a),N.abs(f-c))}var g=this.node.cx||.5,h=this.node.cy||.5,i=this.node.r||0;return d._.box(g-i,h-i,2*i,2*i)}function D(a,c){function d(a,b){for(var c=(b-j)/(a-k),d=k;a>d;d++)h[d].offset=+(+j+c*(d-k)).toFixed(2);k=a,j=b}var f,g=v(b("snap.util.grad.parse",null,c));if(!g)return null;g.params.unshift(a),f="l"==g.type.toLowerCase()?E.apply(0,g.params):F.apply(0,g.params),g.type!=g.type.toLowerCase()&&e(f.node,{gradientUnits:"userSpaceOnUse"});var h=g.stops,i=h.length,j=0,k=0;i--;for(var l=0;i>l;l++)"offset"in h[l]&&d(l,h[l].offset);for(h[i].offset=h[i].offset||100,d(i,h[i].offset),l=0;i>=l;l++){var m=h[l];f.addStop(m.color,m.offset)}return f}function E(a,b,c,d,f){var g=x("linearGradient",a);return g.stops=A,g.addStop=B,g.getBBox=C,null!=b&&e(g.node,{x1:b,y1:c,x2:d,y2:f}),g}function F(a,b,c,d,f,g){var h=x("radialGradient",a);return h.stops=A,h.addStop=B,h.getBBox=C,null!=b&&e(h.node,{cx:b,cy:c,r:d}),null!=f&&null!=g&&e(h.node,{fx:f,fy:g}),h}function G(a){return function(c){if(b.stop(),c instanceof w&&1==c.node.childNodes.length&&("radialGradient"==c.node.firstChild.tagName||"linearGradient"==c.node.firstChild.tagName||"pattern"==c.node.firstChild.tagName)&&(c=c.node.firstChild,r(this).appendChild(c),c=z(c)),c instanceof u)if("radialGradient"==c.type||"linearGradient"==c.type||"pattern"==c.type){c.node.id||e(c.node,{id:c.id});var f=ia(c.node.id)}else f=c.attr(a);else if(f=d.color(c),f.error){var g=D(r(this),c);g?(g.node.id||e(g.node,{id:g.id}),f=ia(g.node.id)):f=c}else f=K(f);var h={};h[a]=f,e(this.node,h),this.node.style[a]=S}}function H(a){for(var b=[],c=a.childNodes,d=0,e=c.length;e>d;d++){var f=c[d];3==f.nodeType&&b.push(f.nodeValue),"tspan"==f.tagName&&(1==f.childNodes.length&&3==f.firstChild.nodeType?b.push(f.firstChild.nodeValue):b.push(H(f)))}return b}d.version="0.2.0",d.toString=function(){return"Snap v"+this.version},d._={};var I={win:a,doc:a.document};d._.glob=I;var J="hasOwnProperty",K=String,L=parseFloat,M=parseInt,N=Math,O=N.max,P=N.min,Q=N.abs,R=(N.pow,N.PI),S=(N.round,""),T=" ",U=Object.prototype.toString,V=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,W=/^url\(#?([^)]+)\)$/,X="\t\n\v\f\r \u2028\u2029",Y=new RegExp("[,"+X+"]+"),Z=(new RegExp("["+X+"]","g"),new RegExp("["+X+"]*,["+X+"]*")),$={hs:1,rg:1},_=new RegExp("([a-z])["+X+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+X+"]*,?["+X+"]*)+)","ig"),aa=new RegExp("([rstm])["+X+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+X+"]*,?["+X+"]*)+)","ig"),ba=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+X+"]*,?["+X+"]*","ig"),ca=0,da="S"+(+new Date).toString(36),ea=function(){return da+(ca++).toString(36)},fa="http://www.w3.org/1999/xlink",ga="http://www.w3.org/2000/svg",ha={},ia=d.url=function(a){return"url('#"+a+"')"};d._.$=e,d._.id=ea,d.format=function(){var a=/\{([^\}]+)\}/g,b=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,c=function(a,c,d){var e=d;return c.replace(b,function(a,b,c,d,f){b=b||d,e&&(b in e&&(e=e[b]),"function"==typeof e&&f&&(e=e()))}),e=(null==e||e==d?a:e)+""};return function(b,d){return K(b).replace(a,function(a,b){return c(a,b,d)})}}();var ja=function(){function a(){this.parentNode.removeChild(this)}return function(b,c){var d=I.doc.createElement("img"),e=I.doc.body;d.style.cssText="position:absolute;left:-9999em;top:-9999em",d.onload=function(){c.call(d),d.onload=d.onerror=null,e.removeChild(d)},d.onerror=a,e.appendChild(d),d.src=b}}();d._.clone=h,d._.cacher=j,d.rad=l,d.deg=m,d.angle=k,d.is=f,d.snapTo=function(a,b,c){if(c=f(c,"finite")?c:10,f(a,"array")){for(var d=a.length;d--;)if(Q(a[d]-b)<=c)return a[d]}else{a=+a;var e=b%a;if(c>e)return b-e;if(e>a-c)return b-e+a}return b},function(a){function b(a){return a[0]*a[0]+a[1]*a[1]}function c(a){var c=N.sqrt(b(a));a[0]&&(a[0]/=c),a[1]&&(a[1]/=c)}a.add=function(a,b,c,d,e,f){var g,h,i,j,k=[[],[],[]],l=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],m=[[a,c,e],[b,d,f],[0,0,1]];for(a&&a instanceof n&&(m=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]),g=0;3>g;g++)for(h=0;3>h;h++){for(j=0,i=0;3>i;i++)j+=l[g][i]*m[i][h];k[g][h]=j}return this.a=k[0][0],this.b=k[1][0],this.c=k[0][1],this.d=k[1][1],this.e=k[0][2],this.f=k[1][2],this},a.invert=function(){var a=this,b=a.a*a.d-a.b*a.c;return new n(a.d/b,-a.b/b,-a.c/b,a.a/b,(a.c*a.f-a.d*a.e)/b,(a.b*a.e-a.a*a.f)/b)},a.clone=function(){return new n(this.a,this.b,this.c,this.d,this.e,this.f)},a.translate=function(a,b){return this.add(1,0,0,1,a,b)},a.scale=function(a,b,c,d){return null==b&&(b=a),(c||d)&&this.add(1,0,0,1,c,d),this.add(a,0,0,b,0,0),(c||d)&&this.add(1,0,0,1,-c,-d),this},a.rotate=function(a,b,c){a=l(a),b=b||0,c=c||0;var d=+N.cos(a).toFixed(9),e=+N.sin(a).toFixed(9);return this.add(d,e,-e,d,b,c),this.add(1,0,0,1,-b,-c)},a.x=function(a,b){return a*this.a+b*this.c+this.e},a.y=function(a,b){return a*this.b+b*this.d+this.f},a.get=function(a){return+this[K.fromCharCode(97+a)].toFixed(4)},a.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},a.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},a.split=function(){var a={};a.dx=this.e,a.dy=this.f;var d=[[this.a,this.c],[this.b,this.d]];a.scalex=N.sqrt(b(d[0])),c(d[0]),a.shear=d[0][0]*d[1][0]+d[0][1]*d[1][1],d[1]=[d[1][0]-d[0][0]*a.shear,d[1][1]-d[0][1]*a.shear],a.scaley=N.sqrt(b(d[1])),c(d[1]),a.shear/=a.scaley;var e=-d[0][1],f=d[1][1];return 0>f?(a.rotate=m(N.acos(f)),0>e&&(a.rotate=360-a.rotate)):a.rotate=m(N.asin(e)),a.isSimple=!(+a.shear.toFixed(9)||a.scalex.toFixed(9)!=a.scaley.toFixed(9)&&a.rotate),a.isSuperSimple=!+a.shear.toFixed(9)&&a.scalex.toFixed(9)==a.scaley.toFixed(9)&&!a.rotate,a.noRotation=!+a.shear.toFixed(9)&&!a.rotate,a},a.toTransformString=function(a){var b=a||this.split();return b.isSimple?(b.scalex=+b.scalex.toFixed(4),b.scaley=+b.scaley.toFixed(4),b.rotate=+b.rotate.toFixed(4),(b.dx||b.dy?"t"+[+b.dx.toFixed(4),+b.dy.toFixed(4)]:S)+(1!=b.scalex||1!=b.scaley?"s"+[b.scalex,b.scaley,0,0]:S)+(b.rotate?"r"+[+b.rotate.toFixed(4),0,0]:S)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(n.prototype),d.Matrix=n,d.getRGB=j(function(a){if(!a||(a=K(a)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:na};if("none"==a)return{r:-1,g:-1,b:-1,hex:"none",toString:na};if(!($[J](a.toLowerCase().substring(0,2))||"#"==a.charAt())&&(a=ka(a)),!a)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:na};var b,c,e,g,h,i,j=a.match(V);return j?(j[2]&&(e=M(j[2].substring(5),16),c=M(j[2].substring(3,5),16),b=M(j[2].substring(1,3),16)),j[3]&&(e=M((h=j[3].charAt(3))+h,16),c=M((h=j[3].charAt(2))+h,16),b=M((h=j[3].charAt(1))+h,16)),j[4]&&(i=j[4].split(Z),b=L(i[0]),"%"==i[0].slice(-1)&&(b*=2.55),c=L(i[1]),"%"==i[1].slice(-1)&&(c*=2.55),e=L(i[2]),"%"==i[2].slice(-1)&&(e*=2.55),"rgba"==j[1].toLowerCase().slice(0,4)&&(g=L(i[3])),i[3]&&"%"==i[3].slice(-1)&&(g/=100)),j[5]?(i=j[5].split(Z),b=L(i[0]),"%"==i[0].slice(-1)&&(b/=100),c=L(i[1]),"%"==i[1].slice(-1)&&(c/=100),e=L(i[2]),"%"==i[2].slice(-1)&&(e/=100),("deg"==i[0].slice(-3)||"°"==i[0].slice(-1))&&(b/=360),"hsba"==j[1].toLowerCase().slice(0,4)&&(g=L(i[3])),i[3]&&"%"==i[3].slice(-1)&&(g/=100),d.hsb2rgb(b,c,e,g)):j[6]?(i=j[6].split(Z),b=L(i[0]),"%"==i[0].slice(-1)&&(b/=100),c=L(i[1]),"%"==i[1].slice(-1)&&(c/=100),e=L(i[2]),"%"==i[2].slice(-1)&&(e/=100),("deg"==i[0].slice(-3)||"°"==i[0].slice(-1))&&(b/=360),"hsla"==j[1].toLowerCase().slice(0,4)&&(g=L(i[3])),i[3]&&"%"==i[3].slice(-1)&&(g/=100),d.hsl2rgb(b,c,e,g)):(b=P(N.round(b),255),c=P(N.round(c),255),e=P(N.round(e),255),g=P(O(g,0),1),j={r:b,g:c,b:e,toString:na},j.hex="#"+(16777216|e|c<<8|b<<16).toString(16).slice(1),j.opacity=f(g,"finite")?g:1,j)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:na}},d),d.hsb=j(function(a,b,c){return d.hsb2rgb(a,b,c).hex}),d.hsl=j(function(a,b,c){return d.hsl2rgb(a,b,c).hex}),d.rgb=j(function(a,b,c,d){if(f(d,"finite")){var e=N.round;return"rgba("+[e(a),e(b),e(c),+d.toFixed(2)]+")"}return"#"+(16777216|c|b<<8|a<<16).toString(16).slice(1)});var ka=function(a){var b=I.doc.getElementsByTagName("head")[0],c="rgb(255, 0, 0)";return(ka=j(function(a){if("red"==a.toLowerCase())return c;b.style.color=c,b.style.color=a;var d=I.doc.defaultView.getComputedStyle(b,S).getPropertyValue("color");return d==c?null:d}))(a)},la=function(){return"hsb("+[this.h,this.s,this.b]+")"},ma=function(){return"hsl("+[this.h,this.s,this.l]+")"},na=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},oa=function(a,b,c){if(null==b&&f(a,"object")&&"r"in a&&"g"in a&&"b"in a&&(c=a.b,b=a.g,a=a.r),null==b&&f(a,string)){var e=d.getRGB(a);a=e.r,b=e.g,c=e.b}return(a>1||b>1||c>1)&&(a/=255,b/=255,c/=255),[a,b,c]},pa=function(a,b,c,e){a=N.round(255*a),b=N.round(255*b),c=N.round(255*c);var g={r:a,g:b,b:c,opacity:f(e,"finite")?e:1,hex:d.rgb(a,b,c),toString:na};return f(e,"finite")&&(g.opacity=e),g};d.color=function(a){var b;return f(a,"object")&&"h"in a&&"s"in a&&"b"in a?(b=d.hsb2rgb(a),a.r=b.r,a.g=b.g,a.b=b.b,a.opacity=1,a.hex=b.hex):f(a,"object")&&"h"in a&&"s"in a&&"l"in a?(b=d.hsl2rgb(a),a.r=b.r,a.g=b.g,a.b=b.b,a.opacity=1,a.hex=b.hex):(f(a,"string")&&(a=d.getRGB(a)),f(a,"object")&&"r"in a&&"g"in a&&"b"in a&&!("error"in a)?(b=d.rgb2hsl(a),a.h=b.h,a.s=b.s,a.l=b.l,b=d.rgb2hsb(a),a.v=b.b):(a={hex:"none"},a.r=a.g=a.b=a.h=a.s=a.v=a.l=-1,a.error=1)),a.toString=na,a},d.hsb2rgb=function(a,b,c,d){f(a,"object")&&"h"in a&&"s"in a&&"b"in a&&(c=a.b,b=a.s,a=a.h,d=a.o),a*=360;var e,g,h,i,j;return a=a%360/60,j=c*b,i=j*(1-Q(a%2-1)),e=g=h=c-j,a=~~a,e+=[j,i,0,0,i,j][a],g+=[i,j,j,i,0,0][a],h+=[0,0,i,j,j,i][a],pa(e,g,h,d)},d.hsl2rgb=function(a,b,c,d){f(a,"object")&&"h"in a&&"s"in a&&"l"in a&&(c=a.l,b=a.s,a=a.h),(a>1||b>1||c>1)&&(a/=360,b/=100,c/=100),a*=360;var e,g,h,i,j;return a=a%360/60,j=2*b*(.5>c?c:1-c),i=j*(1-Q(a%2-1)),e=g=h=c-j/2,a=~~a,e+=[j,i,0,0,i,j][a],g+=[i,j,j,i,0,0][a],h+=[0,0,i,j,j,i][a],pa(e,g,h,d)},d.rgb2hsb=function(a,b,c){c=oa(a,b,c),a=c[0],b=c[1],c=c[2];var d,e,f,g;return f=O(a,b,c),g=f-P(a,b,c),d=0==g?null:f==a?(b-c)/g:f==b?(c-a)/g+2:(a-b)/g+4, d=60*((d+360)%6)/360,e=0==g?0:g/f,{h:d,s:e,b:f,toString:la}},d.rgb2hsl=function(a,b,c){c=oa(a,b,c),a=c[0],b=c[1],c=c[2];var d,e,f,g,h,i;return g=O(a,b,c),h=P(a,b,c),i=g-h,d=0==i?null:g==a?(b-c)/i:g==b?(c-a)/i+2:(a-b)/i+4,d=60*((d+360)%6)/360,f=(g+h)/2,e=0==i?0:.5>f?i/(2*f):i/(2-2*f),{h:d,s:e,l:f,toString:ma}},d.parsePathString=function(a){if(!a)return null;var b=d.path(a);if(b.arr)return d.path.clone(b.arr);var c={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},e=[];return f(a,"array")&&f(a[0],"array")&&(e=d.path.clone(a)),e.length||K(a).replace(_,function(a,b,d){var f=[],g=b.toLowerCase();if(d.replace(ba,function(a,b){b&&f.push(+b)}),"m"==g&&f.length>2&&(e.push([b].concat(f.splice(0,2))),g="l",b="m"==b?"l":"L"),"o"==g&&1==f.length&&e.push([b,f[0]]),"r"==g)e.push([b].concat(f));else for(;f.length>=c[g]&&(e.push([b].concat(f.splice(0,c[g]))),c[g]););}),e.toString=d.path.toString,b.arr=d.path.clone(e),e};var qa=d.parseTransformString=function(a){if(!a)return null;var b=[];return f(a,"array")&&f(a[0],"array")&&(b=d.path.clone(a)),b.length||K(a).replace(aa,function(a,c,d){var e=[];c.toLowerCase(),d.replace(ba,function(a,b){b&&e.push(+b)}),b.push([c].concat(e))}),b.toString=d.path.toString,b};d._.svgTransform2string=o,d._.rgTransform=new RegExp("^[a-z]["+X+"]*-?\\.?\\d","i"),d._.transform2matrix=p,d._unit2px=s;var ra=I.doc.contains||I.doc.compareDocumentPosition?function(a,b){var c=9==a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a==d||!(!d||1!=d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b;)if(b=b.parentNode,b==a)return!0;return!1};d._.getSomeDefs=r,d.select=function(a){return z(I.doc.querySelector(a))},d.selectAll=function(a){for(var b=I.doc.querySelectorAll(a),c=(d.set||Array)(),e=0;e j;j++){d=f[j],b(d,"fill"),b(d,"stroke"),b(d,"filter"),b(d,"mask"),b(d,"clip-path"),c(d);var l=e(d.node,"id");l&&(e(d.node,{id:d.id}),h.push({old:l,id:d.id}))}for(j=0,k=h.length;k>j;j++){var m=i[h[j].old];if(m)for(var n=0,o=m.length;o>n;n++)m[n](h[j].id)}}function h(a,b,c){return function(d){var e=d.slice(a,b);return 1==e.length&&(e=e[0]),c?c(e):e}}function i(a){return function(){var b=a?"<"+this.type:"",c=this.node.attributes,d=this.node.childNodes;if(a)for(var e=0,f=c.length;f>e;e++)b+=" "+c[e].name+'="'+c[e].value.replace(/"/g,'\\"')+'"';if(d.length){for(a&&(b+=">"),e=0,f=d.length;f>e;e++)3==d[e].nodeType?b+=d[e].nodeValue:1==d[e].nodeType&&(b+=z(d[e]).toString());a&&(b+=""+this.type+">")}else a&&(b+="/>");return b}}a.attr=function(a,c){var d=this;if(d.node,!a)return d;if(f(a,"string")){if(!(arguments.length>1))return v(b("snap.util.getattr."+a,d));var e={};e[a]=c,a=e}for(var g in a)a[J](g)&&b("snap.util.attr."+g,d,a[g]);return d},a.getBBox=function(a){var b=this;if("use"==b.type&&(b=b.original),b.removed)return{};var c=b._;return a?(c.bboxwt=d.path.get[b.type]?d.path.getBBox(b.realPath=d.path.get[b.type](b)):d._.box(b.node.getBBox()),d._.box(c.bboxwt)):(b.realPath=(d.path.get[b.type]||d.path.get.deflt)(b),c.bbox=d.path.getBBox(d.path.map(b.realPath,b.matrix)),d._.box(c.bbox))};var j=function(){return this.string};a.transform=function(a){var b=this._;if(null==a){var c=new n(this.node.getCTM()),d=q(this),f=d.toTransformString(),g=K(d)==K(this.matrix)?b.transform:f;return{string:g,globalMatrix:c,localMatrix:d,diffMatrix:c.clone().add(d.invert()),global:c.toTransformString(),local:f,toString:j}}return a instanceof n&&(a=a.toTransformString()),q(this,a),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?e(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?e(this.node,{patternTransform:this.matrix}):e(this.node,{transform:this.matrix})),this},a.parent=function(){return z(this.node.parentNode)},a.append=a.add=function(a){if(a){if("set"==a.type){var b=this;return a.forEach(function(a){b.add(a)}),this}a=z(a),this.node.appendChild(a.node),a.paper=this.paper}return this},a.appendTo=function(a){return a&&(a=z(a),a.append(this)),this},a.prepend=function(a){if(a){a=z(a);var b=a.parent();this.node.insertBefore(a.node,this.node.firstChild),this.add&&this.add(),a.paper=this.paper,this.parent()&&this.parent().add(),b&&b.add()}return this},a.prependTo=function(a){return a=z(a),a.prepend(this),this},a.before=function(a){if("set"==a.type){var b=this;return a.forEach(function(a){var c=a.parent();b.node.parentNode.insertBefore(a.node,b.node),c&&c.add()}),this.parent().add(),this}a=z(a);var c=a.parent();return this.node.parentNode.insertBefore(a.node,this.node),this.parent()&&this.parent().add(),c&&c.add(),a.paper=this.paper,this},a.after=function(a){a=z(a);var b=a.parent();return this.node.nextSibling?this.node.parentNode.insertBefore(a.node,this.node.nextSibling):this.node.parentNode.appendChild(a.node),this.parent()&&this.parent().add(),b&&b.add(),a.paper=this.paper,this},a.insertBefore=function(a){a=z(a);var b=this.parent();return a.node.parentNode.insertBefore(this.node,a.node),this.paper=a.paper,b&&b.add(),a.parent()&&a.parent().add(),this},a.insertAfter=function(a){a=z(a);var b=this.parent();return a.node.parentNode.insertBefore(this.node,a.node.nextSibling),this.paper=a.paper,b&&b.add(),a.parent()&&a.parent().add(),this},a.remove=function(){var a=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,a&&a.add(),this},a.select=function(a){return z(this.node.querySelector(a))},a.selectAll=function(a){for(var b=this.node.querySelectorAll(a),c=(d.set||Array)(),e=0;e b;b++)a[b].stop();return this},a.animate=function(a,d,e,g){"function"!=typeof e||e.length||(g=e,e=c.linear),a instanceof k&&(g=a.callback,e=a.easing,d=e.dur,a=a.attr);var i,j,l,m,n=[],o=[],p={},q=this;for(var r in a)if(a[J](r)){q.equal?(m=q.equal(r,K(a[r])),i=m.from,j=m.to,l=m.f):(i=+q.attr(r),j=+a[r]);var s=f(i,"array")?i.length:1;p[r]=h(n.length,n.length+s,l),n=n.concat(i),o=o.concat(j)}var t=c.time(),u=c(n,o,t,t+d,c.time,function(a){var b={};for(var c in p)p[J](c)&&(b[c]=p[c](a));q.attr(b)},e);return q.anims[u.id]=u,u._attrs=a,u._callback=g,b.once("mina.finish."+u.id,function(){delete q.anims[u.id],g&&g.call(q)}),b.once("mina.stop."+u.id,function(){delete q.anims[u.id]}),q};var l={};a.data=function(a,c){var e=l[this.id]=l[this.id]||{};if(0==arguments.length)return b("snap.data.get."+this.id,this,e,null),e;if(1==arguments.length){if(d.is(a,"object")){for(var f in a)a[J](f)&&this.data(f,a[f]);return this}return b("snap.data.get."+this.id,this,e[a],a),e[a]}return e[a]=c,b("snap.data.set."+this.id,this,c,a),this},a.removeData=function(a){return null==a?l[this.id]={}:l[this.id]&&delete l[this.id][a],this},a.outerSVG=a.toString=i(1),a.innerSVG=i()}(u.prototype),d.parse=function(a){var b=I.doc.createDocumentFragment(),c=!0,d=I.doc.createElement("div");if(a=K(a),a.match(/^\s*<\s*svg(?:\s|>)/)||(a="",c=!1),d.innerHTML=a,a=d.getElementsByTagName("svg")[0])if(c)b=a;else for(;a.firstChild;)b.appendChild(a.firstChild);return d.innerHTML=S,new w(b)},w.prototype.select=u.prototype.select,w.prototype.selectAll=u.prototype.selectAll,d.fragment=function(){for(var a=Array.prototype.slice.call(arguments,0),b=I.doc.createDocumentFragment(),c=0,e=a.length;e>c;c++){var f=a[c];f.node&&f.node.nodeType&&b.appendChild(f.node),f.nodeType&&b.appendChild(f),"string"==typeof f&&b.appendChild(d.parse(f).node)}return new w(b)},function(a){a.el=function(a,b){return x(a,this.node).attr(b)},a.rect=function(a,b,c,d,e,g){var h;return null==g&&(g=e),f(a,"object")&&"x"in a?h=a:null!=a&&(h={x:a,y:b,width:c,height:d},null!=e&&(h.rx=e,h.ry=g)),this.el("rect",h)},a.circle=function(a,b,c){var d;return f(a,"object")&&"cx"in a?d=a:null!=a&&(d={cx:a,cy:b,r:c}),this.el("circle",d)},a.image=function(a,b,c,d,g){var h=x("image",this.node);if(f(a,"object")&&"src"in a)h.attr(a);else if(null!=a){var i={"xlink:href":a,preserveAspectRatio:"none"};null!=b&&null!=c&&(i.x=b,i.y=c),null!=d&&null!=g?(i.width=d,i.height=g):ja(a,function(){e(h.node,{width:this.offsetWidth,height:this.offsetHeight})}),e(h.node,i)}return h},a.ellipse=function(a,b,c,d){var e=x("ellipse",this.node);return f(a,"object")&&"cx"in a?e.attr(a):null!=a&&e.attr({cx:a,cy:b,rx:c,ry:d}),e},a.path=function(a){var b=x("path",this.node);return f(a,"object")&&!f(a,"array")?b.attr(a):a&&b.attr({d:a}),b},a.group=a.g=function(b){var c=x("g",this.node);c.add=t;for(var d in a)a[J](d)&&(c[d]=a[d]);return 1==arguments.length&&b&&!b.type?c.attr(b):arguments.length&&c.add(Array.prototype.slice.call(arguments,0)),c},a.text=function(a,b,c){var d=x("text",this.node);return f(a,"object")?d.attr(a):null!=a&&d.attr({x:a,y:b,text:c||""}),d},a.line=function(a,b,c,d){var e=x("line",this.node);return f(a,"object")?e.attr(a):null!=a&&e.attr({x1:a,x2:c,y1:b,y2:d}),e},a.polyline=function(a){arguments.length>1&&(a=Array.prototype.slice.call(arguments,0));var b=x("polyline",this.node);return f(a,"object")&&!f(a,"array")?b.attr(a):null!=a&&b.attr({points:a}),b},a.polygon=function(a){arguments.length>1&&(a=Array.prototype.slice.call(arguments,0));var b=x("polygon",this.node);return f(a,"object")&&!f(a,"array")?b.attr(a):null!=a&&b.attr({points:a}),b},function(){a.gradient=function(a){return D(this.defs,a)},a.gradientLinear=function(a,b,c,d){return E(this.defs,a,b,c,d)},a.gradientRadial=function(a,b,c,d,e){return F(this.defs,a,b,c,d,e)},a.toString=function(){var a,b=I.doc.createDocumentFragment(),c=I.doc.createElement("div"),d=this.node.cloneNode(!0);return b.appendChild(c),c.appendChild(d),e(d,{xmlns:ga}),a=c.innerHTML,b.removeChild(b.firstChild),a},a.clear=function(){for(var a,b=this.node.firstChild;b;)a=b.nextSibling,"defs"!=b.tagName&&b.parentNode.removeChild(b),b=a}}()}(y.prototype),d.ajax=function(a,c,d,e){var g=new XMLHttpRequest,h=ea();if(g){if(f(c,"function"))e=d,d=c,c=null;else if(f(c,"object")){var i=[];for(var j in c)c.hasOwnProperty(j)&&i.push(encodeURIComponent(j)+"="+encodeURIComponent(c[j]));c=i.join("&")}return g.open(c?"POST":"GET",a,!0),g.setRequestHeader("X-Requested-With","XMLHttpRequest"),c&&g.setRequestHeader("Content-type","application/x-www-form-urlencoded"),d&&(b.once("snap.ajax."+h+".0",d),b.once("snap.ajax."+h+".200",d),b.once("snap.ajax."+h+".304",d)),g.onreadystatechange=function(){4==g.readyState&&b("snap.ajax."+h+"."+g.status,e,g)},4==g.readyState?g:(g.send(c),g)}},d.load=function(a,b,c){d.ajax(a,function(a){var e=d.parse(a.responseText);c?b.call(c,e):b(e)})},b.on("snap.util.attr.mask",function(a){if(a instanceof u||a instanceof w){if(b.stop(),a instanceof w&&1==a.node.childNodes.length&&(a=a.node.firstChild,r(this).appendChild(a),a=z(a)),"mask"==a.type)var c=a;else c=x("mask",r(this)),c.node.appendChild(a.node),!c.node.id&&e(c.node,{id:c.id});e(this.node,{mask:ia(c.id)})}}),function(a){b.on("snap.util.attr.clip",a),b.on("snap.util.attr.clip-path",a),b.on("snap.util.attr.clipPath",a)}(function(a){if(a instanceof u||a instanceof w){if(b.stop(),"clipPath"==a.type)var c=a;else c=x("clipPath",r(this)),c.node.appendChild(a.node),!c.node.id&&e(c.node,{id:c.id});e(this.node,{"clip-path":ia(c.id)})}}),b.on("snap.util.attr.fill",G("fill")),b.on("snap.util.attr.stroke",G("stroke"));var sa=/^([lr])(?:\(([^)]*)\))?(.*)$/i;b.on("snap.util.grad.parse",function(a){a=K(a);var b=a.match(sa);if(!b)return null;var c=b[1],d=b[2],e=b[3];return d=d.split(/\s*,\s*/).map(function(a){return+a==a?+a:a}),1==d.length&&0==d[0]&&(d=[]),e=e.split("-"),e=e.map(function(a){a=a.split(":");var b={color:a[0]};return a[1]&&(b.offset=a[1]),b}),{type:c,params:d,stops:e}}),b.on("snap.util.attr.d",function(a){b.stop(),f(a,"array")&&f(a[0],"array")&&(a=d.path.toString.call(a)),a=K(a),a.match(/[ruo]/i)&&(a=d.path.toAbsolute(a)),e(this.node,{d:a})})(-1),b.on("snap.util.attr.#text",function(a){b.stop(),a=K(a);for(var c=I.doc.createTextNode(a);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(c)})(-1),b.on("snap.util.attr.path",function(a){b.stop(),this.attr({d:a})})(-1),b.on("snap.util.attr.viewBox",function(a){var c;c=f(a,"object")&&"x"in a?[a.x,a.y,a.width,a.height].join(" "):f(a,"array")?a.join(" "):a,e(this.node,{viewBox:c}),b.stop()})(-1),b.on("snap.util.attr.transform",function(a){this.transform(a),b.stop()})(-1),b.on("snap.util.attr.r",function(a){"rect"==this.type&&(b.stop(),e(this.node,{rx:a,ry:a}))})(-1),b.on("snap.util.attr.textpath",function(a){if(b.stop(),"text"==this.type){var c,d,g;if(!a&&this.textPath){for(d=this.textPath;d.node.firstChild;)this.node.appendChild(d.node.firstChild);return d.remove(),void delete this.textPath}if(f(a,"string")){var h=r(this),i=z(h.parentNode).path(a);h.appendChild(i.node),c=i.id,i.attr({id:c})}else a=z(a),a instanceof u&&(c=a.attr("id"),c||(c=a.id,a.attr({id:c})));if(c)if(d=this.textPath,g=this.node,d)d.attr({"xlink:href":"#"+c});else{for(d=e("textPath",{"xlink:href":"#"+c});g.firstChild;)d.appendChild(g.firstChild);g.appendChild(d),this.textPath=z(d)}}})(-1),b.on("snap.util.attr.text",function(a){if("text"==this.type){for(var c=this.node,d=function(a){var b=e("tspan");if(f(a,"array"))for(var c=0;c r;r++){if(l=a[r],"M"==l[0])j=+l[1],k=+l[2];else{if(m=g(j,k,l[1],l[2],l[3],l[4],l[5],l[6]),q+m>f){if(d&&!p.start){if(n=g(j,k,l[1],l[2],l[3],l[4],l[5],l[6],f-q),o+=["C"+e(n.start.x),e(n.start.y),e(n.m.x),e(n.m.y),e(n.x),e(n.y)],h)return o;p.start=o,o=["M"+e(n.x),e(n.y)+"C"+e(n.n.x),e(n.n.y),e(n.end.x),e(n.end.y),e(l[5]),e(l[6])].join(),q+=m,j=+l[5],k=+l[6];continue}if(!c&&!d)return n=g(j,k,l[1],l[2],l[3],l[4],l[5],l[6],f-q)}q+=m,j=+l[5],k=+l[6]}o+=l.shift()+l}return p.end=o,n=c?q:d?p:i(j,k,l[0],l[1],l[2],l[3],l[4],l[5],1)},null,a._.clone)}function i(a,b,c,d,e,f,g,h,i){var j=1-i,k=S(j,3),l=S(j,2),m=i*i,n=m*i,o=k*a+3*l*i*c+3*j*i*i*e+n*g,p=k*b+3*l*i*d+3*j*i*i*f+n*h,q=a+2*i*(c-a)+m*(e-2*c+a),r=b+2*i*(d-b)+m*(f-2*d+b),s=c+2*i*(e-c)+m*(g-2*e+c),t=d+2*i*(f-d)+m*(h-2*f+d),u=j*a+i*c,v=j*b+i*d,w=j*e+i*g,x=j*f+i*h,y=90-180*O.atan2(q-s,r-t)/P;return{x:o,y:p,m:{x:q,y:r},n:{x:s,y:t},start:{x:u,y:v},end:{x:w,y:x},alpha:y}}function j(b,c,e,f,g,h,i,j){a.is(b,"array")||(b=[b,c,e,f,g,h,i,j]);var k=E.apply(null,b);return d(k.min.x,k.min.y,k.max.x-k.min.x,k.max.y-k.min.y)}function k(a,b,c){return b>=a.x&&b<=a.x+a.width&&c>=a.y&&c<=a.y+a.height}function l(a,b){return a=d(a),b=d(b),k(b,a.x,a.y)||k(b,a.x2,a.y)||k(b,a.x,a.y2)||k(b,a.x2,a.y2)||k(a,b.x,b.y)||k(a,b.x2,b.y)||k(a,b.x,b.y2)||k(a,b.x2,b.y2)||(a.x b.x||b.x a.x)&&(a.y b.y||b.y a.y)}function m(a,b,c,d,e){var f=-3*b+9*c-9*d+3*e,g=a*f+6*b-12*c+6*d;return a*g-3*b+3*c}function n(a,b,c,d,e,f,g,h,i){null==i&&(i=1),i=i>1?1:0>i?0:i;for(var j=i/2,k=12,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],n=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],o=0,p=0;k>p;p++){var q=j*l[p]+j,r=m(q,a,c,e,g),s=m(q,b,d,f,h),t=r*r+s*s;o+=n[p]*O.sqrt(t)}return j*o}function o(a,b,c,d,e,f,g,h,i){if(!(0>i||n(a,b,c,d,e,f,g,h)o;)l/=2,m+=(i>j?1:-1)*l,j=n(a,b,c,d,e,f,g,h,m);return m}}function p(a,b,c,d,e,f,g,h){if(!(R(a,c) R(e,g)||R(b,d)R(f,h))){var i=(a*d-b*c)*(e-g)-(a-c)*(e*h-f*g),j=(a*d-b*c)*(f-h)-(b-d)*(e*h-f*g),k=(a-c)*(f-h)-(b-d)*(e-g);if(k){var l=i/k,m=j/k,n=+l.toFixed(2),o=+m.toFixed(2);if(!(n<+Q(a,c).toFixed(2)||n>+R(a,c).toFixed(2)||n<+Q(e,g).toFixed(2)||n>+R(e,g).toFixed(2)||o<+Q(b,d).toFixed(2)||o>+R(b,d).toFixed(2)||o<+Q(f,h).toFixed(2)||o>+R(f,h).toFixed(2)))return{x:l,y:m}}}}function q(a,b,c){var d=j(a),e=j(b);if(!l(d,e))return c?0:[];for(var f=n.apply(0,a),g=n.apply(0,b),h=~~(f/5),k=~~(g/5),m=[],o=[],q={},r=c?0:[],s=0;h+1>s;s++){var t=i.apply(0,a.concat(s/h));m.push({x:t.x,y:t.y,t:s/h})}for(s=0;k+1>s;s++)t=i.apply(0,b.concat(s/k)),o.push({x:t.x,y:t.y,t:s/k});for(s=0;h>s;s++)for(var u=0;k>u;u++){var v=m[s],w=m[s+1],x=o[u],y=o[u+1],z=T(w.x-v.x)<.001?"y":"x",A=T(y.x-x.x)<.001?"y":"x",B=p(v.x,v.y,w.x,w.y,x.x,x.y,y.x,y.y);if(B){if(q[B.x.toFixed(4)]==B.y.toFixed(4))continue;q[B.x.toFixed(4)]=B.y.toFixed(4);var C=v.t+T((B[z]-v[z])/(w[z]-v[z]))*(w.t-v.t),D=x.t+T((B[A]-x[A])/(y[A]-x[A]))*(y.t-x.t);C>=0&&1>=C&&D>=0&&1>=D&&(c?r++:r.push({x:B.x,y:B.y,t1:C,t2:D}))}}return r}function r(a,b){return t(a,b)}function s(a,b){return t(a,b,1)}function t(a,b,c){a=F(a),b=F(b);for(var d,e,f,g,h,i,j,k,l,m,n=c?0:[],o=0,p=a.length;p>o;o++){var r=a[o];if("M"==r[0])d=h=r[1],e=i=r[2];else{"C"==r[0]?(l=[d,e].concat(r.slice(1)),d=l[6],e=l[7]):(l=[d,e,d,e,h,i,h,i],d=h,e=i);for(var s=0,t=b.length;t>s;s++){var u=b[s];if("M"==u[0])f=j=u[1],g=k=u[2];else{"C"==u[0]?(m=[f,g].concat(u.slice(1)),f=m[6],g=m[7]):(m=[f,g,f,g,j,k,j,k],f=j,g=k);var v=q(l,m,c);if(c)n+=v;else{for(var w=0,x=v.length;x>w;w++)v[w].segment1=o,v[w].segment2=s,v[w].bez1=l,v[w].bez2=m;n=n.concat(v)}}}}}return n}function u(a,b,c){var d=v(a);return k(d,b,c)&&1==t(a,[["M",b,c],["H",d.x2+10]],1)%2}function v(a){var b=c(a);if(b.bbox)return K(b.bbox);if(!a)return d();a=F(a);for(var e,f=0,g=0,h=[],i=[],j=0,k=a.length;k>j;j++)if(e=a[j],"M"==e[0])f=e[1],g=e[2],h.push(f),i.push(g);else{var l=E(f,g,e[1],e[2],e[3],e[4],e[5],e[6]);h=h.concat(l.min.x,l.max.x),i=i.concat(l.min.y,l.max.y),f=e[5],g=e[6]}var m=Q.apply(0,h),n=Q.apply(0,i),o=R.apply(0,h),p=R.apply(0,i),q=d(m,n,o-m,p-n);return b.bbox=K(q),q}function w(a,b,c,d,f){if(f)return[["M",a+f,b],["l",c-2*f,0],["a",f,f,0,0,1,f,f],["l",0,d-2*f],["a",f,f,0,0,1,-f,f],["l",2*f-c,0],["a",f,f,0,0,1,-f,-f],["l",0,2*f-d],["a",f,f,0,0,1,f,-f],["z"]];var g=[["M",a,b],["l",c,0],["l",0,d],["l",-c,0],["z"]];return g.toString=e,g}function x(a,b,c,d,f){if(null==f&&null==d&&(d=c),null!=f)var g=Math.PI/180,h=a+c*Math.cos(-d*g),i=a+c*Math.cos(-f*g),j=b+c*Math.sin(-d*g),k=b+c*Math.sin(-f*g),l=[["M",h,j],["A",c,c,0,+(f-d>180),0,i,k]];else l=[["M",a,b],["m",0,-d],["a",c,d,0,1,1,0,2*d],["a",c,d,0,1,1,0,-2*d],["z"]];return l.toString=e,l}function y(b){var d=c(b),g=String.prototype.toLowerCase;if(d.rel)return f(d.rel);a.is(b,"array")&&a.is(b&&b[0],"array")||(b=a.parsePathString(b));var h=[],i=0,j=0,k=0,l=0,m=0;"M"==b[0][0]&&(i=b[0][1],j=b[0][2],k=i,l=j,m++,h.push(["M",i,j]));for(var n=m,o=b.length;o>n;n++){var p=h[n]=[],q=b[n];if(q[0]!=g.call(q[0]))switch(p[0]=g.call(q[0]),p[0]){case"a":p[1]=q[1],p[2]=q[2],p[3]=q[3],p[4]=q[4],p[5]=q[5],p[6]=+(q[6]-i).toFixed(3),p[7]=+(q[7]-j).toFixed(3);break;case"v":p[1]=+(q[1]-j).toFixed(3);break;case"m":k=q[1],l=q[2];default:for(var r=1,s=q.length;s>r;r++)p[r]=+(q[r]-(r%2?i:j)).toFixed(3)}else{p=h[n]=[],"m"==q[0]&&(k=q[1]+i,l=q[2]+j);for(var t=0,u=q.length;u>t;t++)h[n][t]=q[t]}var v=h[n].length;switch(h[n][0]){case"z":i=k,j=l;break;case"h":i+=+h[n][v-1];break;case"v":j+=+h[n][v-1];break;default:i+=+h[n][v-2],j+=+h[n][v-1]}}return h.toString=e,d.rel=f(h),h}function z(b){var d=c(b);if(d.abs)return f(d.abs);if(J(b,"array")&&J(b&&b[0],"array")||(b=a.parsePathString(b)),!b||!b.length)return[["M",0,0]];var g,h=[],i=0,j=0,k=0,l=0,m=0;"M"==b[0][0]&&(i=+b[0][1],j=+b[0][2],k=i,l=j,m++,h[0]=["M",i,j]);for(var n,o,p=3==b.length&&"M"==b[0][0]&&"R"==b[1][0].toUpperCase()&&"Z"==b[2][0].toUpperCase(),q=m,r=b.length;r>q;q++){if(h.push(n=[]),o=b[q],g=o[0],g!=g.toUpperCase())switch(n[0]=g.toUpperCase(),n[0]){case"A":n[1]=o[1],n[2]=o[2],n[3]=o[3],n[4]=o[4],n[5]=o[5],n[6]=+(o[6]+i),n[7]=+(o[7]+j);break;case"V":n[1]=+o[1]+j;break;case"H":n[1]=+o[1]+i;break;case"R":for(var s=[i,j].concat(o.slice(1)),t=2,u=s.length;u>t;t++)s[t]=+s[t]+i,s[++t]=+s[t]+j;h.pop(),h=h.concat(H(s,p));break;case"O":h.pop(),s=x(i,j,o[1],o[2]),s.push(s[0]),h=h.concat(s);break;case"U":h.pop(),h=h.concat(x(i,j,o[1],o[2],o[3])),n=["U"].concat(h[h.length-1].slice(-2));break;case"M":k=+o[1]+i,l=+o[2]+j;default:for(t=1,u=o.length;u>t;t++)n[t]=+o[t]+(t%2?i:j)}else if("R"==g)s=[i,j].concat(o.slice(1)),h.pop(),h=h.concat(H(s,p)),n=["R"].concat(o.slice(-2));else if("O"==g)h.pop(),s=x(i,j,o[1],o[2]),s.push(s[0]),h=h.concat(s);else if("U"==g)h.pop(),h=h.concat(x(i,j,o[1],o[2],o[3])),n=["U"].concat(h[h.length-1].slice(-2));else for(var v=0,w=o.length;w>v;v++)n[v]=o[v];if(g=g.toUpperCase(),"O"!=g)switch(n[0]){case"Z":i=k,j=l;break;case"H":i=n[1];break;case"V":j=n[1];break;case"M":k=n[n.length-2],l=n[n.length-1];default:i=n[n.length-2],j=n[n.length-1]}}return h.toString=e,d.abs=f(h),h}function A(a,b,c,d){return[a,b,c,d,c,d]}function B(a,b,c,d,e,f){var g=1/3,h=2/3;return[g*a+h*c,g*b+h*d,g*e+h*c,g*f+h*d,e,f]}function C(b,c,d,e,f,g,h,i,j,k){var l,m=120*P/180,n=P/180*(+f||0),o=[],p=a._.cacher(function(a,b,c){var d=a*O.cos(c)-b*O.sin(c),e=a*O.sin(c)+b*O.cos(c);return{x:d,y:e}});if(k)y=k[0],z=k[1],w=k[2],x=k[3];else{l=p(b,c,-n),b=l.x,c=l.y,l=p(i,j,-n),i=l.x,j=l.y;var q=(O.cos(P/180*f),O.sin(P/180*f),(b-i)/2),r=(c-j)/2,s=q*q/(d*d)+r*r/(e*e);s>1&&(s=O.sqrt(s),d=s*d,e=s*e);var t=d*d,u=e*e,v=(g==h?-1:1)*O.sqrt(T((t*u-t*r*r-u*q*q)/(t*r*r+u*q*q))),w=v*d*r/e+(b+i)/2,x=v*-e*q/d+(c+j)/2,y=O.asin(((c-x)/e).toFixed(9)),z=O.asin(((j-x)/e).toFixed(9));y=w>b?P-y:y,z=w>i?P-z:z,0>y&&(y=2*P+y),0>z&&(z=2*P+z),h&&y>z&&(y-=2*P),!h&&z>y&&(z-=2*P)}var A=z-y;if(T(A)>m){var B=z,D=i,E=j;z=y+m*(h&&z>y?1:-1),i=w+d*O.cos(z),j=x+e*O.sin(z),o=C(i,j,d,e,f,0,h,D,E,[z,B,w,x])}A=z-y;var F=O.cos(y),G=O.sin(y),H=O.cos(z),I=O.sin(z),J=O.tan(A/4),K=4/3*d*J,L=4/3*e*J,M=[b,c],N=[b+K*G,c-L*F],Q=[i+K*I,j-L*H],R=[i,j];if(N[0]=2*M[0]-N[0],N[1]=2*M[1]-N[1],k)return[N,Q,R].concat(o);o=[N,Q,R].concat(o).join().split(",");for(var S=[],U=0,V=o.length;V>U;U++)S[U]=U%2?p(o[U-1],o[U],n).y:p(o[U],o[U+1],n).x;return S}function D(a,b,c,d,e,f,g,h,i){var j=1-i;return{x:S(j,3)*a+3*S(j,2)*i*c+3*j*i*i*e+S(i,3)*g,y:S(j,3)*b+3*S(j,2)*i*d+3*j*i*i*f+S(i,3)*h}}function E(a,b,c,d,e,f,g,h){var i,j=e-2*c+a-(g-2*e+c),k=2*(c-a)-2*(e-c),l=a-c,m=(-k+O.sqrt(k*k-4*j*l))/2/j,n=(-k-O.sqrt(k*k-4*j*l))/2/j,o=[b,h],p=[a,g];return T(m)>"1e12"&&(m=.5),T(n)>"1e12"&&(n=.5),m>0&&1>m&&(i=D(a,b,c,d,e,f,g,h,m),p.push(i.x),o.push(i.y)),n>0&&1>n&&(i=D(a,b,c,d,e,f,g,h,n),p.push(i.x),o.push(i.y)),j=f-2*d+b-(h-2*f+d),k=2*(d-b)-2*(f-d),l=b-d,m=(-k+O.sqrt(k*k-4*j*l))/2/j,n=(-k-O.sqrt(k*k-4*j*l))/2/j,T(m)>"1e12"&&(m=.5),T(n)>"1e12"&&(n=.5),m>0&&1>m&&(i=D(a,b,c,d,e,f,g,h,m),p.push(i.x),o.push(i.y)),n>0&&1>n&&(i=D(a,b,c,d,e,f,g,h,n),p.push(i.x),o.push(i.y)),{min:{x:Q.apply(0,p),y:Q.apply(0,o)},max:{x:R.apply(0,p),y:R.apply(0,o)}}}function F(a,b){var d=!b&&c(a);if(!b&&d.curve)return f(d.curve);for(var e=z(a),g=b&&z(b),h={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},j=(function(a,b){var c,d;if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];switch(!(a[0]in{T:1,Q:1})&&(b.qx=b.qy=null),a[0]){case"M":b.X=a[1],b.Y=a[2];break;case"A":a=["C"].concat(C.apply(0,[b.x,b.y].concat(a.slice(1))));break;case"S":c=b.x+(b.x-(b.bx||b.x)),d=b.y+(b.y-(b.by||b.y)),a=["C",c,d].concat(a.slice(1));break;case"T":b.qx=b.x+(b.x-(b.qx||b.x)),b.qy=b.y+(b.y-(b.qy||b.y)),a=["C"].concat(B(b.x,b.y,b.qx,b.qy,a[1],a[2]));break;case"Q":b.qx=a[1],b.qy=a[2],a=["C"].concat(B(b.x,b.y,a[1],a[2],a[3],a[4]));break;case"L":a=["C"].concat(A(b.x,b.y,a[1],a[2]));break;case"H":a=["C"].concat(A(b.x,b.y,a[1],b.y));break;case"V":a=["C"].concat(A(b.x,b.y,b.x,a[1]));break;case"Z":a=["C"].concat(A(b.x,b.y,b.X,b.Y))}return a}),k=function(a,b){if(a[b].length>7){a[b].shift();for(var c=a[b];c.length;)a.splice(b++,0,["C"].concat(c.splice(0,6)));a.splice(b,1),n=R(e.length,g&&g.length||0)}},l=function(a,b,c,d,f){a&&b&&"M"==a[f][0]&&"M"!=b[f][0]&&(b.splice(f,0,["M",d.x,d.y]),c.bx=0,c.by=0,c.x=a[f][1],c.y=a[f][2],n=R(e.length,g&&g.length||0))},m=0,n=R(e.length,g&&g.length||0);n>m;m++){e[m]=j(e[m],h),k(e,m),g&&(g[m]=j(g[m],i)),g&&k(g,m),l(e,g,h,i,m),l(g,e,i,h,m);var o=e[m],p=g&&g[m],q=o.length,r=g&&p.length;h.x=o[q-2],h.y=o[q-1],h.bx=N(o[q-4])||h.x,h.by=N(o[q-3])||h.y,i.bx=g&&(N(p[r-4])||i.x),i.by=g&&(N(p[r-3])||i.y),i.x=g&&p[r-2],i.y=g&&p[r-1]}return g||(d.curve=f(e)),g?[e,g]:e}function G(a,b){if(!b)return a;var c,d,e,f,g,h,i;for(a=F(a),e=0,g=a.length;g>e;e++)for(i=a[e],f=1,h=i.length;h>f;f+=2)c=b.x(i[f],i[f+1]),d=b.y(i[f],i[f+1]),i[f]=c,i[f+1]=d;return a}function H(a,b){for(var c=[],d=0,e=a.length;e-2*!b>d;d+=2){var f=[{x:+a[d-2],y:+a[d-1]},{x:+a[d],y:+a[d+1]},{x:+a[d+2],y:+a[d+3]},{x:+a[d+4],y:+a[d+5]}];b?d?e-4==d?f[3]={x:+a[0],y:+a[1]}:e-2==d&&(f[2]={x:+a[0],y:+a[1]},f[3]={x:+a[2],y:+a[3]}):f[0]={x:+a[e-2],y:+a[e-1]}:e-4==d?f[3]=f[2]:d||(f[0]={x:+a[d],y:+a[d+1]}),c.push(["C",(-f[0].x+6*f[1].x+f[2].x)/6,(-f[0].y+6*f[1].y+f[2].y)/6,(f[1].x+6*f[2].x-f[3].x)/6,(f[1].y+6*f[2].y-f[3].y)/6,f[2].x,f[2].y])}return c}var I=b.prototype,J=a.is,K=a._.clone,L="hasOwnProperty",M=/,?([a-z]),?/gi,N=parseFloat,O=Math,P=O.PI,Q=O.min,R=O.max,S=O.pow,T=O.abs,U=h(1),V=h(),W=h(0,1),X=a._unit2px,Y={path:function(a){return a.attr("path"); },circle:function(a){var b=X(a);return x(b.cx,b.cy,b.r)},ellipse:function(a){var b=X(a);return x(b.cx,b.cy,b.rx,b.ry)},rect:function(a){var b=X(a);return w(b.x,b.y,b.width,b.height,b.rx,b.ry)},image:function(a){var b=X(a);return w(b.x,b.y,b.width,b.height)},text:function(a){var b=a.node.getBBox();return w(b.x,b.y,b.width,b.height)},g:function(a){var b=a.node.getBBox();return w(b.x,b.y,b.width,b.height)},symbol:function(a){var b=a.getBBox();return w(b.x,b.y,b.width,b.height)},line:function(a){return"M"+[a.attr("x1"),a.attr("y1"),a.attr("x2"),a.attr("y2")]},polyline:function(a){return"M"+a.attr("points")},polygon:function(a){return"M"+a.attr("points")+"z"},svg:function(a){var b=a.node.getBBox();return w(b.x,b.y,b.width,b.height)},deflt:function(a){var b=a.node.getBBox();return w(b.x,b.y,b.width,b.height)}};a.path=c,a.path.getTotalLength=U,a.path.getPointAtLength=V,a.path.getSubpath=function(a,b,c){if(this.getTotalLength(a)-c<1e-6)return W(a,b).end;var d=W(a,c,1);return b?W(d,b).end:d},I.getTotalLength=function(){return this.node.getTotalLength?this.node.getTotalLength():void 0},I.getPointAtLength=function(a){return V(this.attr("d"),a)},I.getSubpath=function(b,c){return a.path.getSubpath(this.attr("d"),b,c)},a._.box=d,a.path.findDotsAtSegment=i,a.path.bezierBBox=j,a.path.isPointInsideBBox=k,a.path.isBBoxIntersect=l,a.path.intersection=r,a.path.intersectionNumber=s,a.path.isPointInside=u,a.path.getBBox=v,a.path.get=Y,a.path.toRelative=y,a.path.toAbsolute=z,a.path.toCubic=F,a.path.map=G,a.path.toString=e,a.path.clone=f}),d.plugin(function(a){var b=Math.max,c=Math.min,d=function(a){if(this.items=[],this.length=0,this.type="set",a)for(var b=0,c=a.length;c>b;b++)a[b]&&(this[this.items.length]=this.items[this.items.length]=a[b],this.length++)},e=d.prototype;e.push=function(){for(var a,b,c=0,d=arguments.length;d>c;c++)a=arguments[c],a&&(b=this.items.length,this[b]=this.items[b]=a,this.length++);return this},e.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},e.forEach=function(a,b){for(var c=0,d=this.items.length;d>c;c++)if(a.call(b,this.items[c],c)===!1)return this;return this},e.remove=function(){for(;this.length;)this.pop().remove();return this},e.attr=function(a){for(var b=0,c=this.items.length;c>b;b++)this.items[b].attr(a);return this},e.clear=function(){for(;this.length;)this.pop()},e.splice=function(a,e){a=0>a?b(this.length+a,0):a,e=b(0,c(this.length-a,e));var f,g=[],h=[],i=[];for(f=2;ff;f++)h.push(this[a+f]);for(;f f?i[f]:g[f-j];for(f=this.items.length=this.length-=e-j;this[f];)delete this[f++];return new d(h)},e.exclude=function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]==a)return this.splice(b,1),!0;return!1},e.insertAfter=function(a){for(var b=this.items.length;b--;)this.items[b].insertAfter(a);return this},e.getBBox=function(){for(var a=[],d=[],e=[],f=[],g=this.items.length;g--;)if(!this.items[g].removed){var h=this.items[g].getBBox();a.push(h.x),d.push(h.y),e.push(h.x+h.width),f.push(h.y+h.height)}return a=c.apply(0,a),d=c.apply(0,d),e=b.apply(0,e),f=b.apply(0,f),{x:a,y:d,x2:e,y2:f,width:e-a,height:f-d,cx:a+(e-a)/2,cy:d+(f-d)/2}},e.clone=function(a){a=new d;for(var b=0,c=this.items.length;c>b;b++)a.push(this.items[b].clone());return a},e.toString=function(){return"Snap‘s set"},e.type="set",a.set=function(){var a=new d;return arguments.length&&a.push.apply(a,Array.prototype.slice.call(arguments,0)),a}}),d.plugin(function(a,b){function c(a){var b=a[0];switch(b.toLowerCase()){case"t":return[b,0,0];case"m":return[b,1,0,0,1,0,0];case"r":return 4==a.length?[b,0,a[2],a[3]]:[b,0];case"s":return 5==a.length?[b,1,1,a[3],a[4]]:3==a.length?[b,1,1]:[b,1]}}function d(b,d,e){d=l(d).replace(/\.{3}|\u2026/g,b),b=a.parseTransformString(b)||[],d=a.parseTransformString(d)||[];for(var f,g,j,k,m=Math.max(b.length,d.length),n=[],o=[],p=0;m>p;p++){if(j=b[p]||c(d[p]),k=d[p]||c(j),j[0]!=k[0]||"r"==j[0].toLowerCase()&&(j[2]!=k[2]||j[3]!=k[3])||"s"==j[0].toLowerCase()&&(j[3]!=k[3]||j[4]!=k[4])){b=a._.transform2matrix(b,e()),d=a._.transform2matrix(d,e()),n=[["m",b.a,b.b,b.c,b.d,b.e,b.f]],o=[["m",d.a,d.b,d.c,d.d,d.e,d.f]];break}for(n[p]=[],o[p]=[],f=0,g=Math.max(j.length,k.length);g>f;f++)f in j&&(n[p][f]=j[f]),f in k&&(o[p][f]=k[f])}return{from:i(n),to:i(o),f:h(n)}}function e(a){return a}function f(a){return function(b){return+b.toFixed(3)+a}}function g(b){return a.rgb(b[0],b[1],b[2])}function h(a){var b,c,d,e,f,g,h=0,i=[];for(b=0,c=a.length;c>b;b++){for(f="[",g=['"'+a[b][0]+'"'],d=1,e=a[b].length;e>d;d++)g[d]="val["+h++ +"]";f+=g+"]",i[b]=f}return Function("val","return Snap.path.toString.call(["+i+"])")}function i(a){for(var b=[],c=0,d=a.length;d>c;c++)for(var e=1,f=a[c].length;f>e;e++)b.push(a[c][e]);return b}var j={},k=/[a-z]+$/i,l=String;j.stroke=j.fill="colour",b.prototype.equal=function(b,c){var m,n,o=l(this.attr(b)||""),p=this;if(o==+o&&c==+c)return{from:+o,to:+c,f:e};if("colour"==j[b])return m=a.color(o),n=a.color(c),{from:[m.r,m.g,m.b,m.opacity],to:[n.r,n.g,n.b,n.opacity],f:g};if("transform"==b||"gradientTransform"==b||"patternTransform"==b)return c instanceof a.Matrix&&(c=c.toTransformString()),a._.rgTransform.test(c)||(c=a._.svgTransform2string(c)),d(o,c,function(){return p.getBBox(1)});if("d"==b||"path"==b)return m=a.path.toCubic(o,c),{from:i(m[0]),to:i(m[1]),f:h(m[0])};if("points"==b)return m=l(o).split(","),n=l(c).split(","),{from:m,to:n,f:function(a){return a}};var q=o.match(k),r=l(c).match(k);return q&&q==r?{from:parseFloat(o),to:parseFloat(c),f:f(q)}:{from:this.asPX(b),to:this.asPX(b,c),f:e}}}),d.plugin(function(a,c,d,e){for(var f=c.prototype,g="hasOwnProperty",h=("createTouch"in e.doc),i=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],j={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},k=function(a){var b="y"==a?"scrollTop":"scrollLeft";return e.doc.documentElement[b]||e.doc.body[b]},l=function(){this.returnValue=!1},m=function(){return this.originalEvent.preventDefault()},n=function(){this.cancelBubble=!0},o=function(){return this.originalEvent.stopPropagation()},p=function(){return e.doc.addEventListener?function(a,b,c,d){var e=h&&j[b]?j[b]:b,f=function(e){var f=k("y"),i=k("x");if(h&&j[g](b))for(var l=0,n=e.targetTouches&&e.targetTouches.length;n>l;l++)if(e.targetTouches[l].target==a||a.contains(e.targetTouches[l].target)){var p=e;e=e.targetTouches[l],e.originalEvent=p,e.preventDefault=m,e.stopPropagation=o;break}var q=e.clientX+i,r=e.clientY+f;return c.call(d,e,q,r)};return b!==e&&a.addEventListener(b,f,!1),a.addEventListener(e,f,!1),function(){return b!==e&&a.removeEventListener(b,f,!1),a.removeEventListener(e,f,!1),!0}}:e.doc.attachEvent?function(a,b,c,d){var f=function(a){a=a||e.win.event;var b=k("y"),f=k("x"),g=a.clientX+f,h=a.clientY+b;return a.preventDefault=a.preventDefault||l,a.stopPropagation=a.stopPropagation||n,c.call(d,a,g,h)};a.attachEvent("on"+b,f);var g=function(){return a.detachEvent("on"+b,f),!0};return g}:void 0}(),q=[],r=function(c){for(var d,e=c.clientX,f=c.clientY,g=k("y"),i=k("x"),j=q.length;j--;){if(d=q[j],h){for(var l,m=c.touches&&c.touches.length;m--;)if(l=c.touches[m],l.identifier==d.el._drag.id||d.el.node.contains(l.target)){e=l.clientX,f=l.clientY,(c.originalEvent?c.originalEvent:c).preventDefault();break}}else c.preventDefault();var n=d.el.node;a._.glob,n.nextSibling,n.parentNode,n.style.display,e+=i,f+=g,b("snap.drag.move."+d.el.id,d.move_scope||d.el,e-d.el._drag.x,f-d.el._drag.y,e,f,c)}},s=function(c){a.unmousemove(r).unmouseup(s);for(var d,e=q.length;e--;)d=q[e],d.el._drag={},b("snap.drag.end."+d.el.id,d.end_scope||d.start_scope||d.move_scope||d.el,c);q=[]},t=i.length;t--;)!function(b){a[b]=f[b]=function(c,d){return a.is(c,"function")&&(this.events=this.events||[],this.events.push({name:b,f:c,unbind:p(this.shape||this.node||e.doc,b,c,d||this)})),this},a["un"+b]=f["un"+b]=function(a){for(var c=this.events||[],d=c.length;d--;)if(c[d].name==b&&(c[d].f==a||!a))return c[d].unbind(),c.splice(d,1),!c.length&&delete this.events,this;return this}}(i[t]);f.hover=function(a,b,c,d){return this.mouseover(a,c).mouseout(b,d||c)},f.unhover=function(a,b){return this.unmouseover(a).unmouseout(b)};var u=[];f.drag=function(c,d,e,f,g,h){function i(i,j,k){(i.originalEvent||i).preventDefault(),this._drag.x=j,this._drag.y=k,this._drag.id=i.identifier,!q.length&&a.mousemove(r).mouseup(s),q.push({el:this,move_scope:f,start_scope:g,end_scope:h}),d&&b.on("snap.drag.start."+this.id,d),c&&b.on("snap.drag.move."+this.id,c),e&&b.on("snap.drag.end."+this.id,e),b("snap.drag.start."+this.id,g||f||this,j,k,i)}if(!arguments.length){var j;return this.drag(function(a,b){this.attr({transform:j+(j?"T":"t")+[a,b]})},function(){j=this.transform().local})}return this._drag={},u.push({el:this,start:i}),this.mousedown(i),this},f.undrag=function(){for(var c=u.length;c--;)u[c].el==this&&(this.unmousedown(u[c].start),u.splice(c,1),b.unbind("snap.drag.*."+this.id));return!u.length&&a.unmousemove(r).unmouseup(s),this}}),d.plugin(function(a,c,d){var e=(c.prototype,d.prototype),f=/^\s*url\((.+)\)/,g=String,h=a._.$;a.filter={},e.filter=function(b){var d=this;"svg"!=d.type&&(d=d.paper);var e=a.parse(g(b)),f=a._.id(),i=(d.node.offsetWidth,d.node.offsetHeight,h("filter"));return h(i,{id:f,filterUnits:"userSpaceOnUse"}),i.appendChild(e.node),d.defs.appendChild(i),new c(i)},b.on("snap.util.getattr.filter",function(){b.stop();var c=h(this.node,"filter");if(c){var d=g(c).match(f);return d&&a.select(d[1])}}),b.on("snap.util.attr.filter",function(d){if(d instanceof c&&"filter"==d.type){b.stop();var e=d.node.id;e||(h(d.node,{id:d.id}),e=d.id),h(this.node,{filter:a.url(e)})}d&&"none"!=d||(b.stop(),this.node.removeAttribute("filter"))}),a.filter.blur=function(b,c){null==b&&(b=2);var d=null==c?b:[b,c];return a.format(' ',{def:d})},a.filter.blur.toString=function(){return this()},a.filter.shadow=function(b,c,d,e){return e=e||"#000",null==d&&(d=4),"string"==typeof d&&(e=d,d=4),null==b&&(b=0,c=2),null==c&&(c=b),e=a.color(e),a.format(' ',{color:e,dx:b,dy:c,blur:d})},a.filter.shadow.toString=function(){return this()},a.filter.grayscale=function(b){return null==b&&(b=1),a.format(' ',{a:.2126+.7874*(1-b),b:.7152-.7152*(1-b),c:.0722-.0722*(1-b),d:.2126-.2126*(1-b),e:.7152+.2848*(1-b),f:.0722-.0722*(1-b),g:.2126-.2126*(1-b),h:.0722+.9278*(1-b)})},a.filter.grayscale.toString=function(){return this()},a.filter.sepia=function(b){return null==b&&(b=1),a.format(' ',{a:.393+.607*(1-b),b:.769-.769*(1-b),c:.189-.189*(1-b),d:.349-.349*(1-b),e:.686+.314*(1-b),f:.168-.168*(1-b),g:.272-.272*(1-b),h:.534-.534*(1-b),i:.131+.869*(1-b)})},a.filter.sepia.toString=function(){return this()},a.filter.saturate=function(b){return null==b&&(b=1),a.format(' ',{amount:1-b})},a.filter.saturate.toString=function(){return this()},a.filter.hueRotate=function(b){return b=b||0,a.format(' ',{angle:b})},a.filter.hueRotate.toString=function(){return this()},a.filter.invert=function(b){return null==b&&(b=1),a.format(' ',{amount:b,amount2:1-b})},a.filter.invert.toString=function(){return this()},a.filter.brightness=function(b){return null==b&&(b=1),a.format(' ',{amount:b})},a.filter.brightness.toString=function(){return this()},a.filter.contrast=function(b){return null==b&&(b=1),a.format(' ',{amount:b,amount2:.5-b/2})},a.filter.contrast.toString=function(){return this()}}),d}),function(a){function b(b){var c="div.ult-overlay."+b;if(joverlay=document.querySelector(c),i=a(c),i.hasClass("ult-open")){i.removeClass("ult-open"),i.addClass("ult-close");var d=function(a){if(support.transitions){if("visibility"!==a.propertyName)return;this.removeEventListener(transEndEventName,d)}i.removeClass("ult-close")};support.transitions?(joverlay.addEventListener(transEndEventName,d),i.removeClass("ult-close"),f i-1||g.animate({path:h[a]},60,mina.linear,function(){l(a)})};l(j)}}function e(a){for(var b,c,d=a.length;0!==d;)c=Math.floor(Math.random()*d),d-=1,b=a[d],a[d]=a[c],a[c]=b;return a}function f(b){var c="div.overlay-boxes."+b,d=document.querySelector(c),f=a(c),g=[].slice.call(d.querySelectorAll("svg > path")),h=g.length,i=0;e(g),f.hasClass("ult-open")?(f.removeClass("ult-open"),f.addClass("ult-close"),g.forEach(function(a,b){setTimeout(function(){++i,a.style.display="none",i===h&&f.removeClass("ult-close")},30*b)})):f.hasClass("ult-close")||(f.addClass("ult-open"),g.forEach(function(a,b){setTimeout(function(){a.style.display="block"},30*b)}))}function g(b){var c=a("."+b).find(".ult_modal-content").height(),d=a(window).height();c>d?a("."+b).addClass("ult_modal-auto-top"):a("."+b).removeClass("ult_modal-auto-top"),a("."+b).find("iframe").length>0&&a("."+b).find("iframe").each(function(b,c){a(c).attr("src",a(c).attr("src"))}),a(document).trigger("onUVCModalPopupOpen",b)}function h(){a(".ult_modal-body iframe").each(function(b,c){var d=a(this).parent().width(),e=(!!a(this).parent().parent().parent().hasClass("ult-small"),!!a(this).parent().parent().parent().hasClass("ult-medium"),!!a(this).parent().parent().parent().hasClass("ult-container")),f=!!a(this).parent().parent().parent().hasClass("ult-block"),g=d/10,h=d*(9/16)+g,i=!(!a(this).parent().hasClass("ult-youtube")&&!a(this).parent().hasClass("ult-vimeo"));if(!i)return!1;if(e){var j=a(window).height();j